mktemp: fix parallel installing

Without the upstream patch parallel install fails as:

mktemp> mkdir /nix/store/k5b7wyhwyv9x3z5i6d88y7l1kdrkkfgj-mktemp-1.7/share/man/man1
mktemp> cp: cannot create regular file '/nix/store/k5b7wyhwyv9x3z5i6d88y7l1kdrkkfgj-mktemp-1.7/share/man/man1/1185.tmp': No such file or directory
mktemp> make: *** [Makefile:101: install-man] Error 1
mktemp> make: *** Waiting for unfinished jobs....

+17 -1
+17 -1
pkgs/tools/security/mktemp/default.nix
··· 1 - { lib, stdenv, fetchurl, groff }: 2 3 stdenv.mkDerivation rec { 4 pname = "mktemp"; ··· 7 # Have `configure' avoid `/usr/bin/nroff' in non-chroot builds. 8 NROFF = "${groff}/bin/nroff"; 9 10 # Don't use "install -s" 11 postPatch = '' 12 substituteInPlace Makefile.in --replace " 0555 -s " " 0555 " ··· 16 url = "ftp://ftp.mktemp.org/pub/mktemp/mktemp-${version}.tar.gz"; 17 sha256 = "0x969152znxxjbj7387xb38waslr4yv6bnj5jmhb4rpqxphvk54f"; 18 }; 19 20 meta = with lib; { 21 description = "Simple tool to make temporary file handling in shells scripts safe and simple";
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , fetchpatch 5 + , groff 6 + }: 7 8 stdenv.mkDerivation rec { 9 pname = "mktemp"; ··· 12 # Have `configure' avoid `/usr/bin/nroff' in non-chroot builds. 13 NROFF = "${groff}/bin/nroff"; 14 15 + patches = [ 16 + # Pull upstream fix for parallel install failures. 17 + (fetchpatch { 18 + name = "parallel-install.patch"; 19 + url = "https://www.mktemp.org/repos/mktemp/raw-rev/eb87d96ce8b7"; 20 + hash = "sha256-cJ/0pFj8tOkByUwhlMwLNSQgTHyAU8svEkjKWWwsNmY="; 21 + }) 22 + ]; 23 + 24 # Don't use "install -s" 25 postPatch = '' 26 substituteInPlace Makefile.in --replace " 0555 -s " " 0555 " ··· 30 url = "ftp://ftp.mktemp.org/pub/mktemp/mktemp-${version}.tar.gz"; 31 sha256 = "0x969152znxxjbj7387xb38waslr4yv6bnj5jmhb4rpqxphvk54f"; 32 }; 33 + 34 + enableParallelBuilding = true; 35 36 meta = with lib; { 37 description = "Simple tool to make temporary file handling in shells scripts safe and simple";