2021-01-17 04:20:00 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
2018-12-26 19:49:24 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "mcfly";
|
2021-01-17 04:20:00 +00:00
|
|
|
version = "0.5.3";
|
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}";
|
2021-01-17 04:20:00 +00:00
|
|
|
sha256 = "1p51wdv47cyg6dmb81fm0d92x1kp7bwwpgax6vlh669nkddiwvmm";
|
2018-12-26 19:49:24 +00:00
|
|
|
};
|
|
|
|
|
2020-08-22 09:20:00 +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-01-22 04:00:00 +00:00
|
|
|
install -Dm644 -t $out/share/mcfly mcfly.bash
|
2020-06-28 18:52:53 +00:00
|
|
|
install -Dm644 -t $out/share/mcfly mcfly.zsh
|
2020-08-22 09:20:00 +00:00
|
|
|
install -Dm644 -t $out/share/mcfly mcfly.fish
|
2018-12-26 19:49:24 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-17 04:20:00 +00:00
|
|
|
cargoSha256 = "0gcdgca8w8i978b067rwm5zrc81rxb704006k9pbcwizkq2281yy";
|
2018-12-26 19:49:24 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/cantino/mcfly";
|
2020-06-28 18:52:53 +00:00
|
|
|
description = "An upgraded ctrl-r for Bash whose history results make sense for what you're working on right now";
|
2020-12-11 03:18:00 +00:00
|
|
|
changelog = "https://github.com/cantino/mcfly/blob/v${version}/CHANGELOG.txt";
|
2018-12-26 19:49:24 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.melkor333 ];
|
|
|
|
};
|
|
|
|
}
|