nixpkgs/pkgs/by-name/mc/mcfly/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
1.0 KiB
Nix
Raw Normal View History

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";
2024-08-12 14:01:44 +00:00
version = "0.9.2";
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}";
2024-08-12 14:01:44 +00:00
hash = "sha256-KQgoyxzTWoQok/sUFcvUazxrBMxVXvxqjJudyKYeZCo=";
2018-12-26 19:49:24 +00:00
};
postPatch = ''
2021-12-25 18:58:49 +00:00
substituteInPlace mcfly.bash --replace '$(command which mcfly)' '${placeholder "out"}/bin/mcfly'
substituteInPlace mcfly.zsh --replace '$(command which mcfly)' '${placeholder "out"}/bin/mcfly'
substituteInPlace mcfly.fish --replace '(command which mcfly)' '${placeholder "out"}/bin/mcfly'
'';
2024-08-12 14:01:44 +00:00
cargoHash = "sha256-c+LOmUUt8t1x5Pp8yGHSeLcJNs/lJzq29KMX/i7Cscs=";
2018-12-26 19:49:24 +00:00
meta = with lib; {
homepage = "https://github.com/cantino/mcfly";
description = "Upgraded ctrl-r where history results make sense for what you're working on right now";
changelog = "https://github.com/cantino/mcfly/raw/v${version}/CHANGELOG.txt";
2018-12-26 19:49:24 +00:00
license = licenses.mit;
maintainers = [ maintainers.melkor333 ];
2023-11-27 01:17:53 +00:00
mainProgram = "mcfly";
2018-12-26 19:49:24 +00:00
};
}