diff --git a/pkgs/tools/misc/pazi/cargo-lock.patch b/pkgs/tools/misc/pazi/cargo-lock.patch new file mode 100644 index 000000000000..4be7aa44c9c7 --- /dev/null +++ b/pkgs/tools/misc/pazi/cargo-lock.patch @@ -0,0 +1,13 @@ +diff --git a/Cargo.lock b/Cargo.lock +index 074b0ca..22f3bc5 100644 +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -286,7 +286,7 @@ dependencies = [ + + [[package]] + name = "pazi" +-version = "0.1.0" ++version = "0.2.0" + dependencies = [ + "clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)", + "crossbeam-channel 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/pkgs/tools/misc/pazi/default.nix b/pkgs/tools/misc/pazi/default.nix new file mode 100644 index 000000000000..0e9ea7f0d868 --- /dev/null +++ b/pkgs/tools/misc/pazi/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "pazi"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "euank"; + repo = pname; + rev = "v${version}"; + sha256 = "12z2vyzmyxfq1krbbrjar7c2gvyq1969v16pb2pm7f4g4k24g0c8"; + }; + + cargoSha256 = "0mgjl5vazk5z1859lb2va9af9yivz47jw4b01rjr4mq67v9jfld1"; + + cargoPatches = [ ./cargo-lock.patch ]; + + meta = with stdenv.lib; { + description = "An autojump \"zap to directory\" helper"; + homepage = https://github.com/euank/pazi; + license = licenses.gpl3; + maintainers = with maintainers; [ bbigras ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d3e81ded08be..626a1d7d9c5f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4953,6 +4953,8 @@ in paulstretch = callPackage ../applications/audio/paulstretch { }; + pazi = callPackage ../tools/misc/pazi { }; + pell = callPackage ../applications/misc/pell { }; pepper = callPackage ../tools/admin/salt/pepper { };