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 {
|
2013-02-27 17:15:57 +00:00
|
|
|
name = "libxslt-1.1.28";
|
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";
|
2013-12-23 18:42:19 +00:00
|
|
|
sha256 = "13029baw9kkyjgr7q3jccw2mz38amq7mmpr5p3bh775qawd1bisz";
|
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-02-06 12:21:18 +00:00
|
|
|
++ [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2015-7995.patch";
|
|
|
|
url = "http://git.gnome.org/browse/libxslt/patch/?id=7ca19df892ca22";
|
|
|
|
sha256 = "1xzg0q94dzbih9nvqp7g9ihz0a3qb0w23l1158m360z9smbi8zbd";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2015-10-05 11:23:01 +00:00
|
|
|
outputs = [ "dev" "out" "bin" "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
|
|
|
}
|