at 23.05-pre 26 lines 708 B view raw
1{ lib, stdenv, fetchurl, groff }: 2 3stdenv.mkDerivation rec { 4 pname = "mktemp"; 5 version = "1.7"; 6 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 " 13 ''; 14 15 src = fetchurl { 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"; 22 homepage = "https://www.mktemp.org"; 23 license = licenses.isc; 24 platforms = platforms.unix; 25 }; 26}