diff options
author | Cole Helbling <cole.e.helbling@outlook.com> | 2020-07-04 00:13:09 -0700 |
---|---|---|
committer | Cole Helbling <cole.e.helbling@outlook.com> | 2020-07-04 12:25:49 -0700 |
commit | ee33c731b59fba833b7d62d47784f8e924e1d551 (patch) | |
tree | 94dbdea83216f3ed00211df6315d45d859e7e409 /pkgs/tools/misc/zoxide | |
parent | 6d775500f7fbdbf3b90866dad31c23e1ade35302 (diff) |
zoxide: 0.4.1 -> 0.4.3
https://github.com/ajeetdsouza/zoxide/compare/v0.4.1...v0.4.3 Also removes unnecessary `rec` and `stdenv`.
Diffstat (limited to 'pkgs/tools/misc/zoxide')
-rw-r--r-- | pkgs/tools/misc/zoxide/default.nix | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/pkgs/tools/misc/zoxide/default.nix b/pkgs/tools/misc/zoxide/default.nix index ee15786d40cc5..f6c018f4e05a8 100644 --- a/pkgs/tools/misc/zoxide/default.nix +++ b/pkgs/tools/misc/zoxide/default.nix @@ -1,28 +1,31 @@ -{ stdenv +{ lib , fetchFromGitHub , rustPlatform -, withFzf ? true, fzf +, withFzf ? true +, fzf }: - -rustPlatform.buildRustPackage rec { +let + version = "0.4.3"; +in +rustPlatform.buildRustPackage { pname = "zoxide"; - version = "0.4.1"; + inherit version; src = fetchFromGitHub { owner = "ajeetdsouza"; repo = "zoxide"; rev = "v${version}"; - sha256 = "1zfk9y5f12h2d5zwf2z8c95xwhbhc6ayv971875fbxgz1nd8vqb6"; + sha256 = "1ghdal6pqkp56rqawhj26ch1x4cvnjj032xz3626aiddqgn134zj"; }; - postPatch = stdenv.lib.optionalString withFzf '' + postPatch = lib.optionalString withFzf '' substituteInPlace src/fzf.rs \ --replace '"fzf"' '"${fzf}/bin/fzf"' ''; - cargoSha256 = "0z0p3cxxazw19bmk3zw7z2q93p00ywsa2cz1jhy78mn5pq1v95rd"; + cargoSha256 = "0klnjmda77bq9i9f0rz48jzaw4rcf7hafcjjpb0i570d7hlxnwsr"; - meta = with stdenv.lib; { + meta = with lib; { description = "A fast cd command that learns your habits"; homepage = "https://github.com/ajeetdsouza/zoxide"; license = with licenses; [ mit ]; |