1{lib, stdenv, fetchurl, m4, perl}:
2
3stdenv.mkDerivation rec {
4 pname = "libtool";
5 version = "1.5.26";
6
7 src = fetchurl {
8 url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
9 sha256 = "029ggq5kri1gjn6nfqmgw4w920gyfzscjjxbsxxidal5zqsawd8w";
10 };
11
12 nativeBuildInputs = [m4];
13 buildInputs = [perl];
14
15 # Don't fixup "#! /bin/sh" in Libtool, otherwise it will use the
16 # "fixed" path in generated files!
17 dontPatchShebangs = true;
18 dontFixLibtool = true;
19
20 meta = {
21 description = "Generic library support script";
22
23 longDescription = ''
24 GNU libtool is a generic library support script. Libtool hides
25 the complexity of using shared libraries behind a consistent,
26 portable interface.
27
28 To use libtool, add the new generic library building commands to
29 your Makefile, Makefile.in, or Makefile.am. See the
30 documentation for details.
31 '';
32
33 homepage = "https://www.gnu.org/software/libtool/";
34
35 license = lib.licenses.gpl2Plus;
36 platforms = lib.platforms.unix;
37
38 mainProgram = "libtool";
39 };
40}