2011-01-13 11:03:16 +01:00
|
|
|
{ stdenv, fetchurl, groff }:
|
|
|
|
|
2004-08-03 17:41:08 +02:00
|
|
|
stdenv.mkDerivation {
|
2018-01-15 02:21:09 +01:00
|
|
|
name = "mktemp-1.7";
|
2011-01-13 11:03:16 +01:00
|
|
|
|
|
|
|
# Have `configure' avoid `/usr/bin/nroff' in non-chroot builds.
|
|
|
|
NROFF = "${groff}/bin/nroff";
|
|
|
|
|
2018-01-15 02:25:25 +01:00
|
|
|
# Don't use "install -s"
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile.in --replace " 0555 -s " " 0555 "
|
|
|
|
'';
|
|
|
|
|
2004-08-03 17:41:08 +02:00
|
|
|
src = fetchurl {
|
2018-01-15 02:21:09 +01:00
|
|
|
url = ftp://ftp.mktemp.org/pub/mktemp/mktemp-1.7.tar.gz;
|
|
|
|
sha256 = "0x969152znxxjbj7387xb38waslr4yv6bnj5jmhb4rpqxphvk54f";
|
2004-08-03 17:41:08 +02:00
|
|
|
};
|
2018-01-15 02:21:09 +01:00
|
|
|
|
2018-08-17 23:44:13 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Simple tool to make temporary file handling in shells scripts safe and simple";
|
|
|
|
homepage = https://www.mktemp.org;
|
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.unix;
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2004-08-03 17:41:08 +02:00
|
|
|
}
|