2019-03-02 21:11:54 +00:00
|
|
|
{ stdenv, makeWrapper, coreutils, gawk, gnused, gnugrep, diffutils, nix }:
|
2016-12-31 12:31:56 +00:00
|
|
|
|
|
|
|
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
|
2019-03-02 21:11:54 +00:00
|
|
|
wrapProgram $f --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils gawk gnused gnugrep nix diffutils ]}
|
2016-12-31 12:31:56 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
}
|