2020-01-22 04:00:00 +00:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub, Security }:
|
2018-12-26 19:49:24 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "mcfly";
|
2020-01-22 03:03:35 +00:00
|
|
|
version = "0.3.6";
|
2018-12-26 19:49:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cantino";
|
|
|
|
repo = "mcfly";
|
2020-01-16 19:33:13 +00:00
|
|
|
rev = "v${version}";
|
2020-01-22 03:03:35 +00:00
|
|
|
sha256 = "1g3n7ll0yg7w7hb3jgp25mlnqwsdzv0608f41z7q5gmsskdm3v1j";
|
2018-12-26 19:49:24 +00:00
|
|
|
};
|
|
|
|
|
2020-01-22 04:00:00 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2018-12-26 19:49:24 +00:00
|
|
|
preInstall = ''
|
2020-01-22 04:00:00 +00:00
|
|
|
install -Dm644 -t $out/share/mcfly mcfly.bash
|
2018-12-26 19:49:24 +00:00
|
|
|
'';
|
|
|
|
|
2020-02-28 05:06:29 +00:00
|
|
|
cargoSha256 = "0r2zb59rpja9z7q0gsylqaq4vqm5rp57fy56ajjrm6k6z06nq7bv";
|
2018-12-26 19:49:24 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/cantino/mcfly";
|
2018-12-26 19:49:24 +00:00
|
|
|
description = "An upgraded ctrl-r for Bash whose history results make sense for what you're working on right now.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.melkor333 ];
|
|
|
|
};
|
|
|
|
}
|