2019-03-19 11:20:21 +03:00
|
|
|
{ stdenv, lib, perl, pandoc, fetchFromGitHub, xdotool, wmctrl, xprop, nettools }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "jumpapp";
|
2020-01-17 10:32:17 +03:00
|
|
|
version = "1.1";
|
2019-03-19 11:20:21 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkropat";
|
|
|
|
repo = "jumpapp";
|
|
|
|
rev = "v${version}";
|
2020-01-17 10:32:17 +03:00
|
|
|
sha256 = "1jrk4mm42sz6ca2gkb6w3dad53d4im4shpgsq8s4vr6xpl3b43ry";
|
2019-03-19 11:20:21 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
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 = {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/mkropat/jumpapp";
|
2019-03-19 11:20:21 +03:00
|
|
|
description = "A run-or-raise application switcher for any X11 desktop";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.matklad ];
|
|
|
|
};
|
|
|
|
}
|