lol
at v206 34 lines 1.1 kB view raw
1{stdenv, fetchurl, automake, libiconv, vanilla ? false}: 2 3stdenv.mkDerivation (rec { 4 name = "pkg-config-0.28"; 5 6 setupHook = ./setup-hook.sh; 7 8 src = fetchurl { 9 url = "http://pkgconfig.freedesktop.org/releases/${name}.tar.gz"; 10 sha256 = "0igqq5m204w71m11y0nipbdf5apx87hwfll6axs12hn4dqfb6vkb"; 11 }; 12 13 buildInputs = stdenv.lib.optional (stdenv.isCygwin || stdenv.isDarwin) libiconv; 14 15 configureFlags = [ "--with-internal-glib" ]; 16 17 patches = (if vanilla then [] else [ 18 # Process Requires.private properly, see 19 # http://bugs.freedesktop.org/show_bug.cgi?id=4738. 20 ./requires-private.patch 21 ]) ++ stdenv.lib.optional stdenv.isCygwin ./2.36.3-not-win32.patch; 22 23 meta = { 24 description = "A tool that allows packages to find out information about other packages"; 25 homepage = http://pkg-config.freedesktop.org/wiki/; 26 platforms = stdenv.lib.platforms.all; 27 }; 28 29} // (if stdenv.system == "mips64el-linux" then 30 { 31 preConfigure = '' 32 cp -v ${automake}/share/automake*/config.{sub,guess} . 33 ''; 34 } else {}))