nixpkgs/pkgs/tools/misc/mcfly/default.nix

32 lines
1.0 KiB
Nix
Raw Normal View History

2020-06-28 11:52:53 -07:00
{ stdenv, rustPlatform, fetchFromGitHub }:
2018-12-26 11:49:24 -08:00
rustPlatform.buildRustPackage rec {
2019-08-31 04:41:23 -07:00
pname = "mcfly";
version = "0.5.1";
2018-12-26 11:49:24 -08:00
src = fetchFromGitHub {
owner = "cantino";
repo = "mcfly";
2020-01-16 11:33:13 -08:00
rev = "v${version}";
sha256 = "1biahx4bji8kasqcxnixnpmfx3qwwibw1vdd172px3i75pbyybqn";
2018-12-26 11:49:24 -08:00
};
2020-08-22 02:20:00 -07: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-21 20:00:00 -08:00
install -Dm644 -t $out/share/mcfly mcfly.bash
2020-06-28 11:52:53 -07:00
install -Dm644 -t $out/share/mcfly mcfly.zsh
2020-08-22 02:20:00 -07:00
install -Dm644 -t $out/share/mcfly mcfly.fish
2018-12-26 11:49:24 -08:00
'';
cargoSha256 = "139pdhrqgl0ai94w2c948aal1j73qw4jxxdd4gxn4apglbnma1xz";
2018-12-26 11:49:24 -08:00
meta = with stdenv.lib; {
homepage = "https://github.com/cantino/mcfly";
2020-06-28 11:52:53 -07:00
description = "An upgraded ctrl-r for Bash whose history results make sense for what you're working on right now";
2018-12-26 11:49:24 -08:00
license = licenses.mit;
maintainers = [ maintainers.melkor333 ];
};
}