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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, fetchpatch
, groff
}:
stdenv.mkDerivation rec {
pname = "mktemp";
version = "1.7";
# Have `configure' avoid `/usr/bin/nroff' in non-chroot builds.
NROFF = "${groff}/bin/nroff";
patches = [
# Pull upstream fix for parallel install failures.
(fetchpatch {
name = "parallel-install.patch";
url = "https://www.mktemp.org/repos/mktemp/raw-rev/eb87d96ce8b7";
hash = "sha256-cJ/0pFj8tOkByUwhlMwLNSQgTHyAU8svEkjKWWwsNmY=";
})
];
2018-01-15 04:25:25 +03:00
# Don't use "install -s"
postPatch = ''
substituteInPlace Makefile.in --replace " 0555 -s " " 0555 "
'';
src = fetchurl {
url = "ftp://ftp.mktemp.org/pub/mktemp/mktemp-${version}.tar.gz";
sha256 = "0x969152znxxjbj7387xb38waslr4yv6bnj5jmhb4rpqxphvk54f";
};
enableParallelBuilding = true;
meta = with lib; {
2018-08-18 00:44:13 +03:00
description = "Simple tool to make temporary file handling in shells scripts safe and simple";
homepage = "https://www.mktemp.org";
2018-08-18 00:44:13 +03:00
license = licenses.isc;
platforms = platforms.unix;
};
}