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