d0677e6d45
This adds a warning to the top of each “boot” package that reads: 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. This makes it clear to maintainer that they may need to treat this package a little differently than others. Importantly, we can’t use fetchpatch here due to using <nix/fetchurl.nix>. To avoid having stale hashes, we need to include patches that are subject to changing overtime (for instance, gitweb’s patches contain a version number at the bottom).
58 lines
1.8 KiB
Nix
58 lines
1.8 KiB
Nix
{ stdenv, fetchurl, m4, perl }:
|
|
|
|
# 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.
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "autoconf-2.69";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/autoconf/${name}.tar.xz";
|
|
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'.
|
|
#doCheck = ((!stdenv.isCygwin) && (!stdenv.isSunOS));
|
|
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.
|
|
preCheck =''
|
|
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.
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|