Rename project to linux-utils, restructure & rewrite readme accordingly
This commit is contained in:
parent
a2f66ba293
commit
d69265c76a
6 changed files with 13 additions and 10 deletions
4
nix-store-fuzzy-find/nix-store-fuzzy-find
Executable file
4
nix-store-fuzzy-find/nix-store-fuzzy-find
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/zsh --errexit
|
||||
|
||||
|
||||
exec find /nix/store -maxdepth 1 -type d -name "*-$1-*"
|
||||
31
nix-store-fuzzy-find/package.nix
Normal file
31
nix-store-fuzzy-find/package.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
# 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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue