2020-01-30 21:25:01 +01:00
|
|
|
{ stdenv, makeWrapper, coreutils, gnused, gnugrep, diffutils, nix }:
|
2016-12-31 13:31:56 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "common-updater-scripts";
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2019-06-19 17:45:34 +02:00
|
|
|
dontUnpack = true;
|
2016-12-31 13:31:56 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${./scripts}/* $out/bin
|
|
|
|
|
|
|
|
for f in $out/bin/*; do
|
2020-01-30 21:25:01 +01:00
|
|
|
wrapProgram $f --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils gnused gnugrep nix diffutils ]}
|
2016-12-31 13:31:56 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
}
|