mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 13:53:24 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
32 lines
907 B
Nix
32 lines
907 B
Nix
{ stdenv, lib, perl, pandoc, fetchFromGitHub, xdotool, wmctrl, xprop, nettools }:
|
|
|
|
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 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 = "Run-or-raise application switcher for any X11 desktop";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.matklad ];
|
|
};
|
|
}
|