summaryrefslogtreecommitdiff
path: root/pkgs/tools/misc/zoxide/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/zoxide/default.nix')
-rw-r--r--pkgs/tools/misc/zoxide/default.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/tools/misc/zoxide/default.nix b/pkgs/tools/misc/zoxide/default.nix
index a454a73384b5..30b9c4969005 100644
--- a/pkgs/tools/misc/zoxide/default.nix
+++ b/pkgs/tools/misc/zoxide/default.nix
@@ -4,20 +4,23 @@
, rustPlatform
, withFzf ? true
, fzf
+, installShellFiles
, libiconv
}:
rustPlatform.buildRustPackage rec {
pname = "zoxide";
- version = "0.6.0";
+ version = "0.7.0";
src = fetchFromGitHub {
owner = "ajeetdsouza";
repo = "zoxide";
rev = "v${version}";
- sha256 = "ZeGFsVBpEhKi4EIhpQlCuriFzmHAgLYw3qE/zqfyqgU=";
+ sha256 = "sha256-yunKyCjJ/vWUcsodweLmxv0+QJQI2i5u5VIzp2U+VyU=";
};
+ nativeBuildInputs = [ installShellFiles ];
+
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
postPatch = lib.optionalString withFzf ''
@@ -25,11 +28,16 @@ rustPlatform.buildRustPackage rec {
--replace '"fzf"' '"${fzf}/bin/fzf"'
'';
- cargoSha256 = "Hzn01+OhdBrZD1woXN4Pwf/S72Deln1gyyBOWyDC6iM=";
+ cargoSha256 = "sha256-eoal6z4wX1pNdAJfdamJgOSFCvGWdbVlq1X+vD9lraE=";
+
+ postInstall = ''
+ installManPage man/*
+ '';
meta = with lib; {
description = "A fast cd command that learns your habits";
homepage = "https://github.com/ajeetdsouza/zoxide";
+ changelog = "https://github.com/ajeetdsouza/zoxide/raw/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
maintainers = with maintainers; [ ysndr cole-h SuperSandro2000 ];
};