pkgs: diff-flake: substitute 'mktemp'

This commit is contained in:
Bruno BELANYI 2021-04-25 12:46:44 +00:00
parent 37a134ebd2
commit f817b278fe
2 changed files with 3 additions and 2 deletions

View file

@ -23,6 +23,7 @@ stdenvNoCC.mkDerivation {
'';
cat = "${coreutils}/bin/cat";
mktemp = "${coreutils}/bin/mktemp";
git = "${git}/bin/git";
sed = "${gnused}/bin/sed";

View file

@ -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"