diff options
author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2019-03-19 11:20:21 +0300 |
---|---|---|
committer | Danylo Hlynskyi <abcz2.uprola@gmail.com> | 2019-03-19 10:20:21 +0200 |
commit | c5c886f091ec05c66f72e43ce49e84c72ff598f4 (patch) | |
tree | 69b8642b3681cc6c6f5b0653190ac4647a7e5944 /pkgs/tools/X11 | |
parent | e6ccb67e23bce78e152ddcd9a85b6a44651e276f (diff) | |
download | nixpkgs-c5c886f091ec05c66f72e43ce49e84c72ff598f4.tar nixpkgs-c5c886f091ec05c66f72e43ce49e84c72ff598f4.tar.gz nixpkgs-c5c886f091ec05c66f72e43ce49e84c72ff598f4.tar.bz2 nixpkgs-c5c886f091ec05c66f72e43ce49e84c72ff598f4.tar.lz nixpkgs-c5c886f091ec05c66f72e43ce49e84c72ff598f4.tar.xz nixpkgs-c5c886f091ec05c66f72e43ce49e84c72ff598f4.tar.zst nixpkgs-c5c886f091ec05c66f72e43ce49e84c72ff598f4.zip |
jumpapp: init at 1.0 (#57893)
Diffstat (limited to 'pkgs/tools/X11')
-rw-r--r-- | pkgs/tools/X11/jumpapp/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/X11/jumpapp/default.nix b/pkgs/tools/X11/jumpapp/default.nix new file mode 100644 index 00000000000..5d3810c7d64 --- /dev/null +++ b/pkgs/tools/X11/jumpapp/default.nix @@ -0,0 +1,31 @@ +{ stdenv, lib, perl, pandoc, fetchFromGitHub, xdotool, wmctrl, xprop, nettools }: + +stdenv.mkDerivation rec { + name = "jumpapp-${version}"; + version = "1.0"; + + src = fetchFromGitHub { + owner = "mkropat"; + repo = "jumpapp"; + rev = "v${version}"; + sha256 = "11ibh51q4vcjkz9fqyw5dy9qrkqxm42hpdccas1s6h2dk9z62kfb"; + }; + + makeFlags = [ "PREFIX=$(out)" ]; + nativeBuildInputs = [ pandoc perl ]; + buildInputs = [ xdotool wmctrl xprop nettools perl ]; + postFixup = let + runtimePath = lib.makeBinPath buildInputs; + in + '' + sed -i "2 i export PATH=${runtimePath}:\$PATH" $out/bin/jumpapp + sed -i "2 i export PATH=${perl}/bin:\$PATH" $out/bin/jumpappify-desktop-entry + ''; + + meta = { + homepage = https://github.com/mkropat/jumpapp; + description = "A run-or-raise application switcher for any X11 desktop"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.matklad ]; + }; +} |