2026-04-30 14:24:48 +02:00
|
|
|
{
|
|
|
|
|
# Build tools.
|
|
|
|
|
installShellFiles, stdenvNoCC,
|
|
|
|
|
|
|
|
|
|
# Packages.
|
|
|
|
|
findutils, zsh,
|
|
|
|
|
}:
|
2025-03-15 12:53:27 +01:00
|
|
|
|
2026-04-29 16:14:59 +02:00
|
|
|
with stdenvNoCC;
|
2025-03-15 12:53:27 +01:00
|
|
|
|
|
|
|
|
mkDerivation {
|
2026-04-30 14:24:48 +02:00
|
|
|
name = "nix-store-fuzzy-find";
|
2025-03-15 12:53:27 +01:00
|
|
|
|
2026-04-30 14:24:48 +02:00
|
|
|
src = ./.;
|
2025-03-15 12:53:27 +01:00
|
|
|
|
2026-04-30 14:24:48 +02:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
buildInputs = [ zsh ];
|
2025-03-15 14:43:23 +01:00
|
|
|
|
|
|
|
|
installPhase = ''
|
2026-04-30 14:24:48 +02:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
|
|
installBin nix-store-fuzzy-find
|
2025-03-15 14:43:23 +01:00
|
|
|
|
2026-04-30 14:24:48 +02:00
|
|
|
runHook postInstall
|
|
|
|
|
'';
|
2025-03-15 12:53:27 +01:00
|
|
|
|
2026-04-30 14:24:48 +02:00
|
|
|
preFixup = ''
|
|
|
|
|
substituteInPlace $out/bin/nix-store-fuzzy-find \
|
|
|
|
|
--replace-fail find ${findutils}/bin/find
|
2026-04-29 16:09:15 +02:00
|
|
|
'';
|
2025-03-15 12:53:27 +01:00
|
|
|
}
|