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