Skip to content

Commit

Permalink
jumpapp: init at 1.0 (#57893)
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad authored and danbst committed Mar 19, 2019
1 parent e6ccb67 commit c5c886f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2880,6 +2880,11 @@
github = "mathnerd314";
name = "Mathnerd314";
};
matklad = {
email = "[email protected]";
github = "matklad";
name = "matklad";
};
matthewbauer = {
email = "[email protected]";
github = "matthewbauer";
Expand Down
31 changes: 31 additions & 0 deletions pkgs/tools/X11/jumpapp/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3652,6 +3652,8 @@ in

jsduck = callPackage ../development/tools/jsduck { };

jumpapp = callPackage ../tools/X11/jumpapp {};

jucipp = callPackage ../applications/editors/jucipp { };

jupp = callPackage ../applications/editors/jupp { };
Expand Down

0 comments on commit c5c886f

Please sign in to comment.