depot/third_party/nixpkgs/pkgs/by-name/mc/mcfly-fzf/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

29 lines
1 KiB
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "mcfly-fzf";
version = "0.1.3";
src = fetchFromGitHub {
owner = "bnprks";
repo = "mcfly-fzf";
rev = version;
hash = "sha256-ZdsbkN+/NLA0vor6/eEdAI7V5m5GEi+phcJQ89Jp4fk=";
};
postPatch = ''
substituteInPlace shell/mcfly-fzf.bash --replace '$(command -v mcfly-fzf)' '${placeholder "out"}/bin/mcfly-fzf'
substituteInPlace shell/mcfly-fzf.zsh --replace '$(command -v mcfly-fzf)' '${placeholder "out"}/bin/mcfly-fzf'
substituteInPlace shell/mcfly-fzf.fish --replace '(command -v mcfly-fzf)' '${placeholder "out"}/bin/mcfly-fzf'
'';
cargoHash = "sha256-xMXM56ulfKAY2HwRTXTG9h3garxDeu+zthMKSve5seQ=";
meta = with lib; {
homepage = "https://github.com/bnprks/mcfly-fzf";
description = "Integrate Mcfly with fzf to combine a solid command history database with a widely-loved fuzzy search UI";
license = licenses.mit;
maintainers = [ maintainers.simonhammes ];
mainProgram = "mcfly-fzf";
};
}