about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/autoconf/2.13.nix
blob: 26d6d9178edd500a24941d7db3f100e1c413e582 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{lib, stdenv, fetchurl, m4, perl, xz}:

stdenv.mkDerivation rec {
  name = "autoconf-2.13";

  src = fetchurl {
    url = "mirror://gnu/autoconf/${name}.tar.gz";
    sha256 = "07krzl4czczdsgzrrw9fiqx35xcf32naf751khg821g5pqv12qgh";
  };

  nativebuildInputs = [ xz ];
  buildInputs = [ m4 perl ];

  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;
  };
}