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