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

28 lines
765 B
Nix
Raw Normal View History

2020-06-28 21:52:53 +03:00
{ stdenv, rustPlatform, fetchFromGitHub }:
2018-12-26 22:49:24 +03:00
rustPlatform.buildRustPackage rec {
2019-08-31 14:41:23 +03:00
pname = "mcfly";
2020-06-28 21:52:53 +03:00
version = "0.4.0";
2018-12-26 22:49:24 +03:00
src = fetchFromGitHub {
owner = "cantino";
repo = "mcfly";
2020-01-16 22:33:13 +03:00
rev = "v${version}";
2020-06-28 21:52:53 +03:00
sha256 = "01rw7gdvpr2s3yj7wphsm5gfrgzf5jkrci4mpqiw7xp8d5k87nzl";
2018-12-26 22:49:24 +03:00
};
preInstall = ''
2020-01-22 07:00:00 +03:00
install -Dm644 -t $out/share/mcfly mcfly.bash
2020-06-28 21:52:53 +03:00
install -Dm644 -t $out/share/mcfly mcfly.zsh
2018-12-26 22:49:24 +03:00
'';
2020-06-28 21:52:53 +03:00
cargoSha256 = "1q1mi69prn9q1nk4021c69vq160ls6md6gpqxk7zyf25r5ckdd98";
2018-12-26 22:49:24 +03:00
meta = with stdenv.lib; {
homepage = "https://github.com/cantino/mcfly";
2020-06-28 21:52:53 +03:00
description = "An upgraded ctrl-r for Bash whose history results make sense for what you're working on right now";
2018-12-26 22:49:24 +03:00
license = licenses.mit;
maintainers = [ maintainers.melkor333 ];
};
}