linux-utils/nix-store-fuzzy-find/package.nix

31 lines
456 B
Nix
Raw Permalink Normal View History

{
# Build tools.
installShellFiles, stdenvNoCC,
# Packages.
findutils, zsh,
}:
2025-03-15 12:53:27 +01:00
with stdenvNoCC;
2025-03-15 12:53:27 +01:00
mkDerivation {
name = "nix-store-fuzzy-find";
2025-03-15 12:53:27 +01:00
src = ./.;
2025-03-15 12:53:27 +01:00
nativeBuildInputs = [ installShellFiles ];
buildInputs = [ zsh ];
installPhase = ''
runHook preInstall
installBin nix-store-fuzzy-find
runHook postInstall
'';
2025-03-15 12:53:27 +01:00
preFixup = ''
substituteInPlace $out/bin/nix-store-fuzzy-find \
--replace-fail find ${findutils}/bin/find
'';
2025-03-15 12:53:27 +01:00
}