2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, m4, perl }:
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "autoconf";
|
|
|
|
version = "2.69";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "mirror://gnu/autoconf/autoconf-${version}.tar.xz";
|
2021-01-05 17:05:55 +00:00
|
|
|
sha256 = "113nlmidxy9kjr45kg9x3ngar4951mvag1js2a3j8nxcz34wxsv4";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ m4 perl ];
|
|
|
|
buildInputs = [ m4 ];
|
|
|
|
|
|
|
|
# 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'.
|
2024-09-26 11:04:55 +00:00
|
|
|
#doCheck = ((!stdenv.hostPlatform.isCygwin) && (!stdenv.hostPlatform.isSunOS));
|
2021-01-05 17:05:55 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
# 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.
|
2021-12-06 16:07:01 +00:00
|
|
|
preCheck = ''
|
2021-01-05 17:05:55 +00:00
|
|
|
export TESTSUITEFLAGS="-j$NIX_BUILD_CORES"
|
|
|
|
'';
|
|
|
|
|
|
|
|
doInstallCheck = false; # fails
|
|
|
|
|
|
|
|
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.gpl2Plus;
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
}
|