Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
976 B
Nix
52 lines
976 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
perl,
|
|
pandoc,
|
|
fetchFromGitHub,
|
|
xdotool,
|
|
wmctrl,
|
|
xprop,
|
|
net-tools,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "jumpapp";
|
|
version = "1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mkropat";
|
|
repo = "jumpapp";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-9sh0+zpDxwqRGC1jUgGTDdSDRdAFsL12mQ/Opwh/UBc=";
|
|
};
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
nativeBuildInputs = [
|
|
pandoc
|
|
perl
|
|
];
|
|
buildInputs = [
|
|
xdotool
|
|
wmctrl
|
|
xprop
|
|
net-tools
|
|
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 = "Run-or-raise application switcher for any X11 desktop";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.matklad ];
|
|
};
|
|
}
|