jumpapp: init at 1.0 (#57893)

This commit is contained in:
Aleksey Kladov
2019-03-19 10:20:21 +02:00
committed by Danylo Hlynskyi
parent e6ccb67e23
commit c5c886f091
3 changed files with 38 additions and 0 deletions
+31
View File
@@ -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 ];
};
}