2020-03-30 03:51:05 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, fzf
|
|
|
|
}:
|
2020-03-10 22:48:38 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "zoxide";
|
2020-04-03 19:33:16 +02:00
|
|
|
version = "0.3.1";
|
2020-03-10 22:48:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ajeetdsouza";
|
|
|
|
repo = "zoxide";
|
|
|
|
rev = "v${version}";
|
2020-04-03 19:33:16 +02:00
|
|
|
sha256 = "1sad18d0pxfdy9gvjmixzgdskg1l7djvzp0aipx7pz0lyi6gs23z";
|
2020-03-10 22:48:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fzf
|
|
|
|
];
|
|
|
|
|
2020-04-03 19:33:16 +02:00
|
|
|
cargoSha256 = "1sx3s1jnfxylbjr3x6v6j8a6zkl7hfyj4alzlyrsw36b1b64pwqm";
|
2020-03-10 22:48:38 +01:00
|
|
|
|
2020-03-30 03:51:05 +02:00
|
|
|
meta = with lib; {
|
2020-03-10 22:48:38 +01:00
|
|
|
description = "A fast cd command that learns your habits";
|
|
|
|
homepage = "https://github.com/ajeetdsouza/zoxide";
|
|
|
|
license = with licenses; [ mit ];
|
2020-03-19 21:21:46 +01:00
|
|
|
maintainers = with maintainers; [ ysndr cole-h ];
|
2020-03-10 22:48:38 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|