fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ lib, stdenv, fetchurl
2, pkg-config
3, libxml2, findXMLCatalogs, gettext, python3, libgcrypt
4, cryptoSupport ? false
5, pythonSupport ? stdenv.buildPlatform == stdenv.hostPlatform
6}:
7
8stdenv.mkDerivation rec {
9 pname = "libxslt";
10 version = "1.1.34";
11
12 src = fetchurl {
13 url = "http://xmlsoft.org/sources/${pname}-${version}.tar.gz";
14 sha256 = "0zrzz6kjdyavspzik6fbkpvfpbd25r2qg6py5nnjaabrsr3bvccq";
15 };
16
17 outputs = [ "bin" "dev" "out" "man" "doc" ] ++ lib.optional pythonSupport "py";
18
19 nativeBuildInputs = [
20 pkg-config
21 ];
22
23 buildInputs = [ libxml2.dev ]
24 ++ lib.optional stdenv.isDarwin gettext
25 ++ lib.optionals pythonSupport [ libxml2.py python3 ]
26 ++ lib.optionals cryptoSupport [ libgcrypt ];
27
28 propagatedBuildInputs = [ findXMLCatalogs ];
29
30 configureFlags = [
31 "--without-debug"
32 "--without-mem-debug"
33 "--without-debugger"
34 ] ++ lib.optional pythonSupport "--with-python=${python3}"
35 ++ lib.optional (!cryptoSupport) "--without-crypto";
36
37 postFixup = ''
38 moveToOutput bin/xslt-config "$dev"
39 moveToOutput lib/xsltConf.sh "$dev"
40 moveToOutput share/man/man1 "$bin"
41 '' + lib.optionalString pythonSupport ''
42 mkdir -p $py/nix-support
43 echo ${libxml2.py} >> $py/nix-support/propagated-build-inputs
44 moveToOutput ${python3.libPrefix} "$py"
45 '';
46
47 passthru = {
48 inherit pythonSupport;
49 };
50
51 meta = with lib; {
52 homepage = "http://xmlsoft.org/XSLT/";
53 description = "A C library and tools to do XSL transformations";
54 license = licenses.mit;
55 platforms = platforms.all;
56 maintainers = [ maintainers.eelco ];
57 broken = !(pythonSupport -> libxml2.pythonSupport); # see #73102 for why this is not an assert
58 };
59}