summary refs log tree commit diff
path: root/pkgs/tools/system/jump
diff options
context:
space:
mode:
authorSondre Nilsen <nilsen.sondre@gmail.com>2019-05-06 16:40:53 +0200
committerWael Nasreddine <wael.nasreddine@gmail.com>2019-05-06 07:40:52 -0700
commitffe0bb84353998458efc048087b0666ff14f4776 (patch)
treecd56ebd4e2de4fcc30a538c46d7b48fbcca16069 /pkgs/tools/system/jump
parent0d00b0b646b7a3c909631354adc16ae07be44bc8 (diff)
downloadnixpkgs-ffe0bb84353998458efc048087b0666ff14f4776.tar
nixpkgs-ffe0bb84353998458efc048087b0666ff14f4776.tar.gz
nixpkgs-ffe0bb84353998458efc048087b0666ff14f4776.tar.bz2
nixpkgs-ffe0bb84353998458efc048087b0666ff14f4776.tar.lz
nixpkgs-ffe0bb84353998458efc048087b0666ff14f4776.tar.xz
nixpkgs-ffe0bb84353998458efc048087b0666ff14f4776.tar.zst
nixpkgs-ffe0bb84353998458efc048087b0666ff14f4776.zip
jump: init at 0.23.0 (#60631)
Diffstat (limited to 'pkgs/tools/system/jump')
-rw-r--r--pkgs/tools/system/jump/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/system/jump/default.nix b/pkgs/tools/system/jump/default.nix
new file mode 100644
index 00000000000..697fc77d090
--- /dev/null
+++ b/pkgs/tools/system/jump/default.nix
@@ -0,0 +1,40 @@
+{ buildGoModule, fetchFromGitHub, lib }:
+
+buildGoModule rec {
+  pname = "jump";
+  version = "0.23.0";
+
+  src = fetchFromGitHub {
+    owner = "gsamokovarov";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1acpvg3adcjnxnz9vx7q99cvnkkvkxfdjkbh2rb6iwakx7ksaakv";
+  };
+
+  modSha256 = "1fzsm85c31vkdw80kijxmjhk8jyhjz8b21npgks2qrnizhm6iaf8";
+
+  outputs = [ "out" "man"];
+  postInstall = ''
+    install -D --mode=444 man/j.1 man/jump.1 -t $man/man/man1/
+
+    # generate completion scripts for jump
+    export HOME="$NIX_BUILD_TOP"
+    mkdir -p $out/share/{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
+    $out/bin/jump shell bash > "$out/share/bash-completion/completions/jump"
+    $out/bin/jump shell fish > $out/share/fish/vendor_completions.d/jump.fish
+    $out/bin/jump shell zsh > $out/share/zsh/site-functions/_jump
+  '';
+
+  meta = with lib; {
+    description = "Jump helps you navigate faster by learning your habits.";
+    longDescription = ''
+      Jump integrates with the shell and learns about your
+      navigational habits by keeping track of the directories you visit. It
+      strives to give you the best directory for the shortest search term.
+    '';
+    homepage = https://github.com/gsamokovarov/jump;
+    license = licenses.mit;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ sondr3 ];
+  };
+}