summary refs log tree commit diff
path: root/pkgs/tools/security/mktemp/default.nix
blob: 71bdd3af55dec9a3c34db63c232c03388a116c2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchurl, groff }:

stdenv.mkDerivation {
  name = "mktemp-1.7";

  # Have `configure' avoid `/usr/bin/nroff' in non-chroot builds.
  NROFF = "${groff}/bin/nroff";

  # 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 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;
  };
}