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