Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 50 lines 1.4 kB view raw
1{ stdenv, fetchurl, m4, perl, help2man 2, buildPlatform, hostPlatform 3}: 4 5stdenv.mkDerivation rec { 6 name = "libtool-2.4.6"; 7 8 src = fetchurl { 9 url = "mirror://gnu/libtool/${name}.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 26 # Don't run the native `strip' when cross-compiling. This breaks at least 27 # with `.a' files for MinGW. 28 dontStrip = hostPlatform != 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 = http://www.gnu.org/software/libtool/; 44 45 license = stdenv.lib.licenses.gpl2Plus; 46 47 maintainers = [ ]; 48 platforms = stdenv.lib.platforms.unix; 49 }; 50}