1{ stdenv, fetchurl, m4, perl, help2man
2}:
3
4stdenv.mkDerivation rec {
5 name = "libtool-2.4.6";
6
7 src = fetchurl {
8 url = "mirror://gnu/libtool/${name}.tar.gz";
9 sha256 = "1qq61k6lp1fp75xs398yzi6wvbx232l7xbyn3p13cnh27mflvgg3";
10 };
11
12 outputs = [ "out" "lib" ];
13
14 nativeBuildInputs = [ perl help2man m4 ];
15 propagatedBuildInputs = [ m4 ];
16
17 # Don't fixup "#! /bin/sh" in Libtool, otherwise it will use the
18 # "fixed" path in generated files!
19 dontPatchShebangs = true;
20
21 # XXX: The GNU ld wrapper does all sorts of nasty things wrt. RPATH, which
22 # leads to the failure of a number of tests.
23 doCheck = false;
24 doInstallCheck = false;
25
26 # Don't run the native `strip' when cross-compiling. This breaks at least
27 # with `.a' files for MinGW.
28 dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
29
30 meta = {
31 description = "GNU Libtool, a generic library support script";
32
33 longDescription = ''
34 GNU libtool is a generic library support script. Libtool hides
35 the complexity of using shared libraries behind a consistent,
36 portable interface.
37
38 To use libtool, add the new generic library building commands to
39 your Makefile, Makefile.in, or Makefile.am. See the
40 documentation for details.
41 '';
42
43 homepage = https://www.gnu.org/software/libtool/;
44
45 license = stdenv.lib.licenses.gpl2Plus;
46
47 maintainers = [ ];
48 platforms = stdenv.lib.platforms.unix;
49 };
50}