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 lib, 3 stdenv, 4 fetchurl, 5 6 # nativeBuildInputs 7 cmake, ··· 12 perl, 13 pkg-config, 14 wrapGAppsHook3, 15 16 # buildInputs 17 SDL2, ··· 52 libtiff, 53 libwebp, 54 libxml2, 55 - libxslt, 56 lua, 57 util-linux, 58 openexr, ··· 79 gitUpdater, 80 }: 81 82 stdenv.mkDerivation rec { 83 version = "5.2.0"; 84 pname = "darktable"; ··· 97 perl 98 pkg-config 99 wrapGAppsHook3 100 ]; 101 102 buildInputs = ··· 120 lensfun 121 lerc 122 libaom 123 - libavif 124 libdatrie 125 libepoxy 126 libexif ··· 138 libtiff 139 libwebp 140 libxml2 141 - libxslt 142 lua 143 openexr 144 openjpeg
··· 2 lib, 3 stdenv, 4 fetchurl, 5 + runCommand, 6 7 # nativeBuildInputs 8 cmake, ··· 13 perl, 14 pkg-config, 15 wrapGAppsHook3, 16 + saxon, 17 18 # buildInputs 19 SDL2, ··· 54 libtiff, 55 libwebp, 56 libxml2, 57 lua, 58 util-linux, 59 openexr, ··· 80 gitUpdater, 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 94 stdenv.mkDerivation rec { 95 version = "5.2.0"; 96 pname = "darktable"; ··· 109 perl 110 pkg-config 111 wrapGAppsHook3 112 + saxon-xslt # Use Saxon instead of libxslt to fix XSLT generate-id() consistency issues 113 ]; 114 115 buildInputs = ··· 133 lensfun 134 lerc 135 libaom 136 + #libavif # TODO re-enable once cmake files are fixed (#425306) 137 libdatrie 138 libepoxy 139 libexif ··· 151 libtiff 152 libwebp 153 libxml2 154 lua 155 openexr 156 openjpeg