2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, perl, pandoc, fetchFromGitHub, xdotool, wmctrl, xprop, nettools }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jumpapp";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "1.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkropat";
|
|
|
|
repo = "jumpapp";
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-9sh0+zpDxwqRGC1jUgGTDdSDRdAFsL12mQ/Opwh/UBc=";
|
2020-04-24 23:36:52 +00: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 = {
|
|
|
|
homepage = "https://github.com/mkropat/jumpapp";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Run-or-raise application switcher for any X11 desktop";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.matklad ];
|
|
|
|
};
|
|
|
|
}
|