2018-12-26 20:49:24 +01:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "mcfly";
|
2020-01-22 04:03:35 +01:00
|
|
|
version = "0.3.6";
|
2018-12-26 20:49:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cantino";
|
|
|
|
repo = "mcfly";
|
2020-01-16 20:33:13 +01:00
|
|
|
rev = "v${version}";
|
2020-01-22 04:03:35 +01:00
|
|
|
sha256 = "1g3n7ll0yg7w7hb3jgp25mlnqwsdzv0608f41z7q5gmsskdm3v1j";
|
2018-12-26 20:49:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/share/mcfly
|
|
|
|
cp mcfly.bash $out/share/mcfly/
|
|
|
|
chmod +x $out/share/mcfly/mcfly.bash
|
|
|
|
'';
|
|
|
|
|
2019-05-25 13:03:08 +02:00
|
|
|
cargoSha256 = "1bf65kagvhsi6lg8187ihi5j45hkq9d8v6j7rzmmfhngdzvcfr69";
|
2018-12-26 20:49:24 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/cantino/mcfly;
|
|
|
|
description = "An upgraded ctrl-r for Bash whose history results make sense for what you're working on right now.";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.melkor333 ];
|
|
|
|
};
|
|
|
|
}
|