nixpkgs/pkgs/development/tools/misc/autoconf/2.13.nix
Sergei Trofimovich 42091a7b8b autoconf213: move 'm4' and 'perl' to nativeBuildInputs (strictDeps = true)
Without the change `strictDeps = true` build fails as:

    $ nix build --impure --expr 'with import ./. {}; autoconf213.overrideAttrs (oa: { strictDeps = true;})'
    Error: Autoconf requires GNU m4 1.1 or later
2022-05-07 07:10:05 +01:00

42 lines
1.2 KiB
Nix

{ lib, stdenv, fetchurl, m4, perl }:
stdenv.mkDerivation rec {
pname = "autoconf";
version = "2.13";
src = fetchurl {
url = "mirror://gnu/autoconf/autoconf-${version}.tar.gz";
sha256 = "07krzl4czczdsgzrrw9fiqx35xcf32naf751khg821g5pqv12qgh";
};
nativeBuildInputs = [ m4 perl ];
strictDeps = true;
doCheck = true;
# Don't fixup "#! /bin/sh" in Autoconf, otherwise it will use the
# "fixed" path in generated files!
dontPatchShebangs = true;
postInstall = ''ln -s autoconf "$out"/bin/autoconf-2.13'';
meta = {
homepage = "https://www.gnu.org/software/autoconf/";
description = "Part of the GNU Build System";
branch = "2.13";
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 = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
};
}