13 , cryptoSupport ? false
14 , pythonSupport ? true
18 stdenv.mkDerivation rec {
22 outputs = [ "bin" "dev" "out" "doc" "devdoc" ] ++ lib.optional pythonSupport "py";
26 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
27 sha256 = "Oksn3IAnzNYUZyWVAzbx7FIJKPMg8UTrX6eZCuYSOrQ=";
39 ] ++ lib.optionals stdenv.isDarwin [
41 ] ++ lib.optionals pythonSupport [
45 ] ++ lib.optionals cryptoSupport [
49 propagatedBuildInputs = [
57 (lib.withFeature pythonSupport "python")
58 (lib.optionalString pythonSupport "PYTHON=${python.pythonForBuild.interpreter}")
59 ] ++ lib.optionals (!cryptoSupport) [
64 moveToOutput bin/xslt-config "$dev"
65 moveToOutput lib/xsltConf.sh "$dev"
66 '' + lib.optionalString pythonSupport ''
67 mkdir -p $py/nix-support
68 echo ${libxml2.py} >> $py/nix-support/propagated-build-inputs
69 moveToOutput ${python.sitePackages} "$py"
73 inherit pythonSupport;
75 updateScript = gnome.updateScript {
77 versionPolicy = "none";
82 homepage = "https://gitlab.gnome.org/GNOME/libxslt";
83 description = "A C library and tools to do XSL transformations";
84 license = licenses.mit;
85 platforms = platforms.all;
86 maintainers = with maintainers; [ eelco jtojnar ];
87 broken = pythonSupport && !libxml2.pythonSupport; # see #73102 for why this is not an assert