saxon: add -xslt symlink
Some projects that expect to be built on debian/ubuntu search for saxon-xslt instead of saxon.
This commit is contained in:
parent
005433b926
commit
2b10f11791
@ -2,7 +2,6 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
runCommand,
|
||||
|
||||
# nativeBuildInputs
|
||||
cmake,
|
||||
@ -80,17 +79,6 @@
|
||||
gitUpdater,
|
||||
}:
|
||||
|
||||
let
|
||||
# Create a wrapper for saxon to provide saxon-xslt command
|
||||
saxon-xslt = runCommand "saxon-xslt" { } ''
|
||||
mkdir -p $out/bin
|
||||
cat > $out/bin/saxon-xslt << 'EOF'
|
||||
#!/bin/sh
|
||||
exec ${saxon}/bin/saxon "$@"
|
||||
EOF
|
||||
chmod +x $out/bin/saxon-xslt
|
||||
'';
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
version = "5.2.1";
|
||||
pname = "darktable";
|
||||
@ -109,7 +97,7 @@ stdenv.mkDerivation rec {
|
||||
perl
|
||||
pkg-config
|
||||
wrapGAppsHook3
|
||||
saxon-xslt # Use Saxon instead of libxslt to fix XSLT generate-id() consistency issues
|
||||
saxon # Use Saxon instead of libxslt to fix XSLT generate-id() consistency issues
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
@ -53,6 +53,10 @@ let
|
||||
mkdir -p $out/bin
|
||||
makeWrapper ${lib.getExe jre} $out/bin/${mainProgram} \
|
||||
--add-flags "-jar $out/share/java/${jar'}.jar"
|
||||
|
||||
# Other distributions like debian distribute it as saxon*-xslt,
|
||||
# this makes compilling packages that target other distros easier.
|
||||
ln -s $out/bin/${mainProgram} $out/bin/${mainProgram}-xslt
|
||||
''
|
||||
+ lib.optionalString (versionAtLeast finalAttrs.version "11") ''
|
||||
mv lib $out/share/java
|
||||
|
Loading…
x
Reference in New Issue
Block a user