2018-12-26 19:49:24 +00:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "mcfly";
|
2018-12-26 19:49:24 +00:00
|
|
|
version = "v0.3.1";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2018-12-26 19:49:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "cantino";
|
|
|
|
repo = "mcfly";
|
|
|
|
sha256 = "0pmyw21zns4zn7pffji4yvbj63fx3g15cx81pk4bs6lzyz5zbdc2";
|
|
|
|
};
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/share/mcfly
|
|
|
|
cp mcfly.bash $out/share/mcfly/
|
|
|
|
chmod +x $out/share/mcfly/mcfly.bash
|
|
|
|
'';
|
|
|
|
|
2019-05-25 11:03:08 +00:00
|
|
|
cargoSha256 = "1bf65kagvhsi6lg8187ihi5j45hkq9d8v6j7rzmmfhngdzvcfr69";
|
2018-12-26 19:49:24 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|