mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
19 lines
420 B
Nix
19 lines
420 B
Nix
{ stdenv, makeWrapper, coreutils, gawk, gnused, gnugrep, diffutils, nix }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "common-updater-scripts";
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
dontUnpack = 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 gnugrep nix diffutils ]}
|
|
done
|
|
'';
|
|
}
|