31 lines
456 B
Nix
31 lines
456 B
Nix
{
|
|
# Build tools.
|
|
installShellFiles, stdenvNoCC,
|
|
|
|
# Packages.
|
|
findutils, zsh,
|
|
}:
|
|
|
|
with stdenvNoCC;
|
|
|
|
mkDerivation {
|
|
name = "nix-store-fuzzy-find";
|
|
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
buildInputs = [ zsh ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
installBin nix-store-fuzzy-find
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
preFixup = ''
|
|
substituteInPlace $out/bin/nix-store-fuzzy-find \
|
|
--replace-fail find ${findutils}/bin/find
|
|
'';
|
|
}
|