Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{lib, stdenv, fetchurl, m4, perl}:
2
3# Note: this package is used for bootstrapping fetchurl, and thus
4# cannot use fetchpatch! All mutable patches (generated by GitHub or
5# cgit) that are needed here should be included directly in Nixpkgs as
6# files.
7
8stdenv.mkDerivation rec {
9 pname = "libtool";
10 version = "1.5.26";
11
12 src = fetchurl {
13 url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
14 sha256 = "029ggq5kri1gjn6nfqmgw4w920gyfzscjjxbsxxidal5zqsawd8w";
15 };
16
17 nativeBuildInputs = [m4];
18 buildInputs = [perl];
19
20 # Don't fixup "#! /bin/sh" in Libtool, otherwise it will use the
21 # "fixed" path in generated files!
22 dontPatchShebangs = true;
23
24 meta = {
25 description = "Generic library support script";
26
27 longDescription = ''
28 GNU libtool is a generic library support script. Libtool hides
29 the complexity of using shared libraries behind a consistent,
30 portable interface.
31
32 To use libtool, add the new generic library building commands to
33 your Makefile, Makefile.in, or Makefile.am. See the
34 documentation for details.
35 '';
36
37 homepage = "https://www.gnu.org/software/libtool/";
38
39 license = lib.licenses.gpl2Plus;
40 platforms = lib.platforms.unix;
41 };
42}