pkgs: diff-flake: substitute 'mktemp'
This commit is contained in:
parent
37a134ebd2
commit
f817b278fe
|
@ -23,6 +23,7 @@ stdenvNoCC.mkDerivation {
|
|||
'';
|
||||
|
||||
cat = "${coreutils}/bin/cat";
|
||||
mktemp = "${coreutils}/bin/mktemp";
|
||||
git = "${git}/bin/git";
|
||||
sed = "${gnused}/bin/sed";
|
||||
|
||||
|
|
|
@ -98,8 +98,8 @@ fill_default_outputs() {
|
|||
|
||||
diff_output() {
|
||||
local PREV NEW;
|
||||
PREV="$(mktemp --dry-run)"
|
||||
NEW="$(mktemp --dry-run)"
|
||||
PREV="$(@mktemp@ --dry-run)"
|
||||
NEW="$(@mktemp@ --dry-run)"
|
||||
|
||||
nix build "${NIX_BUILD_ARGS[@]}" -v ".?rev=${PREVIOUS_REV}#$1" -o "$PREV"
|
||||
nix build "${NIX_BUILD_ARGS[@]}" -v ".${NEW_REV:+?rev=$NEW_REV}#$1" -o "$NEW"
|
||||
|
|
Loading…
Reference in a new issue