3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/common-updater/scripts.nix

19 lines
409 B
Nix
Raw Normal View History

{ stdenv, makeWrapper, coreutils, gnused, gnugrep, diffutils, nix }:
stdenv.mkDerivation {
name = "common-updater-scripts";
buildInputs = [ makeWrapper ];
2019-06-19 16:45:34 +01:00
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 gnused gnugrep nix diffutils ]}
done
'';
}