nixpkgs/pkgs/tools/security/mktemp/default.nix

26 lines
681 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, groff }:
stdenv.mkDerivation {
name = "mktemp-1.7";
# 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 "
'';
src = fetchurl {
url = "ftp://ftp.mktemp.org/pub/mktemp/mktemp-1.7.tar.gz";
sha256 = "0x969152znxxjbj7387xb38waslr4yv6bnj5jmhb4rpqxphvk54f";
};
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";
homepage = "https://www.mktemp.org";
2018-08-17 22:44:13 +01:00
license = licenses.isc;
platforms = platforms.unix;
};
}