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