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-12-09 12:39:15 +00:00
|
|
|
version = "0.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cantino";
|
|
|
|
repo = "mcfly";
|
|
|
|
rev = "v${version}";
|
2020-12-09 12:39:15 +00:00
|
|
|
sha256 = "1biahx4bji8kasqcxnixnpmfx3qwwibw1vdd172px3i75pbyybqn";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace mcfly.bash --replace '$(which mcfly)' $out/bin/mcfly
|
|
|
|
substituteInPlace mcfly.zsh --replace '$(which mcfly)' $out/bin/mcfly
|
|
|
|
substituteInPlace mcfly.fish --replace '(which mcfly)' $out/bin/mcfly
|
2020-04-24 23:36:52 +00:00
|
|
|
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-09-25 04:45:31 +00:00
|
|
|
install -Dm644 -t $out/share/mcfly mcfly.fish
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
cargoSha256 = "139pdhrqgl0ai94w2c948aal1j73qw4jxxdd4gxn4apglbnma1xz";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|