diff options
Diffstat (limited to 'pkgs/tools/misc/zoxide/default.nix')
-rw-r--r-- | pkgs/tools/misc/zoxide/default.nix | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/pkgs/tools/misc/zoxide/default.nix b/pkgs/tools/misc/zoxide/default.nix deleted file mode 100644 index 5b2d00f7538e..000000000000 --- a/pkgs/tools/misc/zoxide/default.nix +++ /dev/null @@ -1,49 +0,0 @@ -{ lib -, stdenv -, fetchFromGitHub -, rustPlatform -, withFzf ? true -, fzf -, installShellFiles -, libiconv -}: - -rustPlatform.buildRustPackage rec { - pname = "zoxide"; - version = "0.9.6"; - - src = fetchFromGitHub { - owner = "ajeetdsouza"; - repo = "zoxide"; - rev = "refs/tags/v${version}"; - hash = "sha256-3XC5K4OlituoFMPN9yJkYi+tkH6M0KK5jVAGdr/GLd0="; - }; - - nativeBuildInputs = [ installShellFiles ]; - - buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; - - postPatch = lib.optionalString withFzf '' - substituteInPlace src/util.rs \ - --replace '"fzf"' '"${fzf}/bin/fzf"' - ''; - - cargoHash = "sha256-ZRsnoLysNzDIi9hDOqwAzbxcyFQgn2Wv3gRNAjV5HfE="; - - postInstall = '' - installManPage man/man*/* - installShellCompletion --cmd zoxide \ - --bash contrib/completions/zoxide.bash \ - --fish contrib/completions/zoxide.fish \ - --zsh contrib/completions/_zoxide - ''; - - meta = with lib; { - description = "Fast cd command that learns your habits"; - homepage = "https://github.com/ajeetdsouza/zoxide"; - changelog = "https://github.com/ajeetdsouza/zoxide/blob/v${version}/CHANGELOG.md"; - license = with licenses; [ mit ]; - maintainers = with maintainers; [ ysndr cole-h SuperSandro2000 ]; - mainProgram = "zoxide"; - }; -} |