common-updater-script: fix error handling

diffutils is required for cmp command
This commit is contained in:
taku0 2017-05-19 22:27:33 +09:00 committed by Tuomas Tynkkynen
parent 53cd7f3373
commit 7868cb8ad4

View file

@ -1,4 +1,4 @@
{ stdenv, makeWrapper, coreutils, gawk, gnused, nix }:
{ stdenv, makeWrapper, coreutils, gawk, gnused, diffutils, nix }:
stdenv.mkDerivation {
name = "common-updater-scripts";
@ -12,7 +12,7 @@ stdenv.mkDerivation {
cp ${./scripts}/* $out/bin
for f in $out/bin/*; do
wrapProgram $f --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils gawk gnused nix ]}
wrapProgram $f --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils gawk gnused nix diffutils ]}
done
'';
}