darktable: fix build by using Saxon XSLT processor (#427116)

authored by Jörg Thalheim and committed by GitHub db4f33b6 c8400694

+15 -3
+15 -3
pkgs/by-name/da/darktable/package.nix
··· 2 2 lib, 3 3 stdenv, 4 4 fetchurl, 5 + runCommand, 5 6 6 7 # nativeBuildInputs 7 8 cmake, ··· 12 13 perl, 13 14 pkg-config, 14 15 wrapGAppsHook3, 16 + saxon, 15 17 16 18 # buildInputs 17 19 SDL2, ··· 52 54 libtiff, 53 55 libwebp, 54 56 libxml2, 55 - libxslt, 56 57 lua, 57 58 util-linux, 58 59 openexr, ··· 79 80 gitUpdater, 80 81 }: 81 82 83 + let 84 + # Create a wrapper for saxon to provide saxon-xslt command 85 + saxon-xslt = runCommand "saxon-xslt" { } '' 86 + mkdir -p $out/bin 87 + cat > $out/bin/saxon-xslt << 'EOF' 88 + #!/bin/sh 89 + exec ${saxon}/bin/saxon "$@" 90 + EOF 91 + chmod +x $out/bin/saxon-xslt 92 + ''; 93 + in 82 94 stdenv.mkDerivation rec { 83 95 version = "5.2.0"; 84 96 pname = "darktable"; ··· 97 109 perl 98 110 pkg-config 99 111 wrapGAppsHook3 112 + saxon-xslt # Use Saxon instead of libxslt to fix XSLT generate-id() consistency issues 100 113 ]; 101 114 102 115 buildInputs = ··· 120 133 lensfun 121 134 lerc 122 135 libaom 123 - libavif 136 + #libavif # TODO re-enable once cmake files are fixed (#425306) 124 137 libdatrie 125 138 libepoxy 126 139 libexif ··· 138 151 libtiff 139 152 libwebp 140 153 libxml2 141 - libxslt 142 154 lua 143 155 openexr 144 156 openjpeg