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