2016-02-06 12:21:18 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, libxml2, findXMLCatalogs }:
|
2006-10-12 15:43:01 +00:00
|
|
|
|
2009-10-30 12:42:48 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-09-28 13:40:37 +00:00
|
|
|
name = "libxslt-1.1.29";
|
2012-09-28 21:19:48 +00:00
|
|
|
|
2006-10-12 15:43:01 +00:00
|
|
|
src = fetchurl {
|
2015-04-04 14:07:31 +00:00
|
|
|
url = "http://xmlsoft.org/sources/${name}.tar.gz";
|
2016-09-28 13:40:37 +00:00
|
|
|
sha256 = "1klh81xbm9ppzgqk339097i39b7fnpmlj8lzn8bpczl3aww6x5xm";
|
2006-10-12 15:43:01 +00:00
|
|
|
};
|
2012-09-28 21:19:48 +00:00
|
|
|
|
2016-02-06 12:21:18 +00:00
|
|
|
patches = stdenv.lib.optional stdenv.isSunOS ./patch-ah.patch
|
2016-02-09 14:37:48 +00:00
|
|
|
++ stdenv.lib.optional (stdenv.cross.libc or null == "msvcrt")
|
|
|
|
(fetchpatch {
|
|
|
|
name = "mingw.patch";
|
|
|
|
url = "http://git.gnome.org/browse/libxslt/patch/?id=ab5810bf27cd63";
|
|
|
|
sha256 = "0kkqq3fv2k3q86al38vp6zwxazpvp5kslcjnmrq4ax5cm2zvsjk3";
|
2016-09-28 13:40:37 +00:00
|
|
|
});
|
2016-02-06 12:21:18 +00:00
|
|
|
|
2016-08-29 00:30:01 +00:00
|
|
|
outputs = [ "bin" "dev" "out" "doc" ];
|
2015-07-26 22:25:53 +00:00
|
|
|
|
2012-09-28 21:19:48 +00:00
|
|
|
buildInputs = [ libxml2 ];
|
|
|
|
|
2014-11-25 16:52:43 +00:00
|
|
|
propagatedBuildInputs = [ findXMLCatalogs ];
|
|
|
|
|
2013-03-25 12:43:45 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--without-python"
|
|
|
|
"--without-crypto"
|
|
|
|
"--without-debug"
|
|
|
|
"--without-mem-debug"
|
|
|
|
"--without-debugger"
|
|
|
|
];
|
|
|
|
|
2015-10-05 11:23:01 +00:00
|
|
|
postFixup = ''
|
2015-12-02 09:03:23 +00:00
|
|
|
moveToOutput bin/xslt-config "$dev"
|
|
|
|
moveToOutput lib/xsltConf.sh "$dev"
|
|
|
|
moveToOutput share/man/man1 "$bin"
|
2015-10-05 11:23:01 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2009-02-03 16:14:23 +00:00
|
|
|
homepage = http://xmlsoft.org/XSLT/;
|
|
|
|
description = "A C library and tools to do XSL transformations";
|
2009-10-30 12:42:48 +00:00
|
|
|
license = "bsd";
|
2015-10-05 11:23:01 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.eelco ];
|
2009-02-03 16:14:23 +00:00
|
|
|
};
|
2006-10-12 15:43:01 +00:00
|
|
|
}
|