nixpkgs/pkgs/tools/misc/zoxide/default.nix

32 lines
676 B
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, rustPlatform
, fzf
}:
2020-03-10 22:48:38 +01:00
rustPlatform.buildRustPackage rec {
pname = "zoxide";
version = "0.4.0";
2020-03-10 22:48:38 +01:00
src = fetchFromGitHub {
owner = "ajeetdsouza";
repo = "zoxide";
rev = "v${version}";
sha256 = "1qkvmjrkcivfzbm6swl5lgvpqz9av9jxcn9i8ms3wz4vfsibmlxv";
2020-03-10 22:48:38 +01:00
};
buildInputs = [
fzf
];
cargoSha256 = "1w921f7b6kzc1mjzff1bcs3mg4cp9h48698w2zlv5jzjs7nwgb8n";
2020-03-10 22:48:38 +01: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;
};
}