-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
jumpapp: init at 1.0 #57893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jumpapp: init at 1.0 #57893
Conversation
This pull request has been mentioned on Nix community. There might be relevant details there: https://discourse.nixos.org/t/packaging-shell-scripts/2447/3 |
pkgs/tools/X11/jumpapp/default.nix
Outdated
makeFlags = [ "PREFIX=$(out)" ]; | ||
buildInputs = [ perl pandoc ]; | ||
postFixup = let | ||
runtimePath = lib.makeSearchPath "bin" [ xdotool wmctrl xprop nettools perl ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about this approach?
nativeBuildInputs = [ pandoc perl ];
buildInputs = [ xdotool wmctrl xprop nettools ];
postFixup = let
runtimePath = lib.makeBinPath buildInputs;
in ...
This way script will be launchable from nix-shell
, for, e.g., script development purposes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat, didn't realize that nativeBuildInputs
can be used in this way. perl
is both run-time and build-time dependency, so I've added it to both lists
pkgs/tools/X11/jumpapp/default.nix
Outdated
homepage = https://github.com/mkropat/jumpapp; | ||
description = "A run-or-raise application switcher for any X11 desktop"; | ||
license = stdenv.lib.licenses.mit; | ||
maintainers = [ ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would you kind sir add yourself as a maintainer, please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Motivation for this change
Packaging a useful utility for window management on X11: https://github.com/mkropat/jumpapp
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)