1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 03:53:41 +00:00
nixpkgs/pkgs/common-updater/scripts.nix
taku0 7868cb8ad4 common-updater-script: fix error handling
diffutils is required for cmp command
2017-05-19 17:14:43 +03:00

19 lines
406 B
Nix

{ stdenv, makeWrapper, coreutils, gawk, gnused, diffutils, 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 diffutils ]}
done
'';
}