mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 13:19:10 +03:00
19 lines
385 B
Nix
19 lines
385 B
Nix
|
{ stdenv, makeWrapper, coreutils, gawk, gnused, nix }:
|
||
|
|
||
|
stdenv.mkDerivation {
|
||
|
name = "common-updater-scripts";
|
||
|
|
||
|
buildInputs = [ makeWrapper ];
|
||
|
|
||
|
unpackPhase = "true";
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/bin
|
||
|
cp ${./scripts}/* $out/bin
|
||
|
|
||
|
for f in $out/bin/*; do
|
||
|
wrapProgram $f --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils gawk gnused nix ]}
|
||
|
done
|
||
|
'';
|
||
|
}
|