Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, m4, perl }:
2
3stdenv.mkDerivation rec {
4 pname = "autoconf";
5 version = "2.64";
6
7 src = fetchurl {
8 url = "mirror://gnu/autoconf/autoconf-${version}.tar.xz";
9 sha256 = "0j3jdjpf5ly39dlp0bg70h72nzqr059k0x8iqxvaxf106chpgn9j";
10 };
11
12 strictDeps = true;
13 nativeBuildInputs = [ m4 perl ];
14 buildInputs = [ m4 ];
15
16 # Work around a known issue in Cygwin. See
17 # http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/6822 for
18 # details.
19 # There are many test failures on `i386-pc-solaris2.11'.
20 #doCheck = ((!stdenv.isCygwin) && (!stdenv.isSunOS));
21 doCheck = false;
22
23 # Don't fixup "#! /bin/sh" in Autoconf, otherwise it will use the
24 # "fixed" path in generated files!
25 dontPatchShebangs = true;
26
27 enableParallelBuilding = true;
28
29 # Make the Autotest test suite run in parallel.
30 preCheck = ''
31 export TESTSUITEFLAGS="-j$NIX_BUILD_CORES"
32 '';
33
34 doInstallCheck = false; # fails
35
36 meta = {
37 homepage = "https://www.gnu.org/software/autoconf/";
38 description = "Part of the GNU Build System";
39
40 longDescription = ''
41 GNU Autoconf is an extensible package of M4 macros that produce
42 shell scripts to automatically configure software source code
43 packages. These scripts can adapt the packages to many kinds of
44 UNIX-like systems without manual user intervention. Autoconf
45 creates a configuration script for a package from a template
46 file that lists the operating system features that the package
47 can use, in the form of M4 macro calls.
48 '';
49
50 license = lib.licenses.gpl2Plus;
51
52 platforms = lib.platforms.all;
53 };
54}