2022-05-18 14:49:53 +00:00
|
|
|
{ lib, stdenv, fetchurl, m4, perl, texinfo }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
# Note: this package is used for bootstrapping fetchurl, and thus
|
|
|
|
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
|
|
|
# cgit) that are needed here should be included directly in Nixpkgs as
|
|
|
|
# files.
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "autoconf";
|
|
|
|
version = "2.71";
|
2022-05-18 14:49:53 +00:00
|
|
|
outputs = [ "out" "doc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-28 23:13:55 +00:00
|
|
|
url = "mirror://gnu/autoconf/autoconf-${version}.tar.xz";
|
2021-05-28 09:39:13 +00:00
|
|
|
sha256 = "197sl23irn6s9pd54rxj5vcp5y8dv65jb9yfqgr2g56cxg7q6k7i";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
patches = [
|
|
|
|
# fix stale autom4te cache race condition:
|
|
|
|
# https://savannah.gnu.org/support/index.php?110521
|
|
|
|
./2.71-fix-race.patch
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
nativeBuildInputs = [ m4 perl texinfo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ m4 ];
|
2022-05-18 14:49:53 +00:00
|
|
|
postBuild = "
|
|
|
|
make html
|
|
|
|
";
|
|
|
|
|
|
|
|
postInstall = "
|
|
|
|
make install-html
|
|
|
|
";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Work around a known issue in Cygwin. See
|
|
|
|
# http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/6822 for
|
|
|
|
# details.
|
|
|
|
# There are many test failures on `i386-pc-solaris2.11'.
|
2021-01-05 17:05:55 +00:00
|
|
|
doCheck = ((!stdenv.isCygwin) && (!stdenv.isSunOS));
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Don't fixup "#! /bin/sh" in Autoconf, otherwise it will use the
|
|
|
|
# "fixed" path in generated files!
|
|
|
|
dontPatchShebangs = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
# Make the Autotest test suite run in parallel.
|
|
|
|
preCheck =''
|
|
|
|
export TESTSUITEFLAGS="-j$NIX_BUILD_CORES"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://www.gnu.org/software/autoconf/";
|
|
|
|
description = "Part of the GNU Build System";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GNU Autoconf is an extensible package of M4 macros that produce
|
|
|
|
shell scripts to automatically configure software source code
|
|
|
|
packages. These scripts can adapt the packages to many kinds of
|
|
|
|
UNIX-like systems without manual user intervention. Autoconf
|
|
|
|
creates a configuration script for a package from a template
|
|
|
|
file that lists the operating system features that the package
|
|
|
|
can use, in the form of M4 macro calls.
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|