2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, groff }:
|
2011-01-13 11:03:16 +01:00
|
|
|
|
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 {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "ftp://ftp.mktemp.org/pub/mktemp/mktemp-1.7.tar.gz";
|
2018-01-15 02:21:09 +01:00
|
|
|
sha256 = "0x969152znxxjbj7387xb38waslr4yv6bnj5jmhb4rpqxphvk54f";
|
2004-08-03 17:41:08 +02:00
|
|
|
};
|
2018-01-15 02:21:09 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-08-17 23:44:13 +02:00
|
|
|
description = "Simple tool to make temporary file handling in shells scripts safe and simple";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.mktemp.org";
|
2018-08-17 23:44:13 +02:00
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.unix;
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2004-08-03 17:41:08 +02:00
|
|
|
}
|