2020-07-18 16:06:22 +00:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mcfly";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "0.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cantino";
|
|
|
|
repo = "mcfly";
|
|
|
|
rev = "v${version}";
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "0fgnhm0b1sd6n12fa2cwlb5b8q4jjm9lqik4lx3l2hv5pkp3dcmb";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
install -Dm644 -t $out/share/mcfly mcfly.bash
|
2020-07-18 16:06:22 +00:00
|
|
|
install -Dm644 -t $out/share/mcfly mcfly.zsh
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
cargoSha256 = "11vc4r3cx5amkrmh4hhc174bca02a87i7hfjb33adjvipphfm83f";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/cantino/mcfly";
|
2020-07-18 16:06:22 +00:00
|
|
|
description = "An upgraded ctrl-r for Bash whose history results make sense for what you're working on right now";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.melkor333 ];
|
|
|
|
};
|
|
|
|
}
|