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

33 lines
1.1 KiB
Nix
Raw Normal View History

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