about summary refs log tree commit diff
path: root/pkgs/tools/misc/zoxide/default.nix
blob: 33d6a8bbcaca4138b4f2403a3b9a6ecb45931725 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchFromGitHub, rustPlatform, fzf }:

rustPlatform.buildRustPackage rec {
  pname = "zoxide";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "ajeetdsouza";
    repo = "zoxide";
    rev = "v${version}";
    sha256 = "0s0zrkn48rgsf2fqpgsl0kix4l6w7k7pwssvdja6y3a4c097qmnm";
  };

  buildInputs = [
    fzf
  ];

  cargoSha256 = "1p65ml2qj5dpc6nczfvf341fk7y4yi5ma1x6kfr3d32wnv6m4hgh";

  meta = with stdenv.lib; {
    description = "A fast cd command that learns your habits";
    homepage = "https://github.com/ajeetdsouza/zoxide";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ ysndr ];
    platforms = platforms.all;
  };
}