libjxl: 0.10.3 -> 0.11.0 (#343546)

This commit is contained in:
Fabián Heredia Montiel 2024-10-17 09:31:01 -06:00 committed by GitHub
commit ce5a18153b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ in
stdenv.mkDerivation rec {
pname = "libjxl";
version = "0.10.3";
version = "0.11.0";
outputs = [ "out" "dev" ];
@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
owner = "libjxl";
repo = "libjxl";
rev = "v${version}";
hash = "sha256-zk/fI1C26K5WC9QBfzS6MqPT9PiR4wmWURjOOIiNsg4=";
hash = "sha256-lBc0zP+f44YadwOU9+I+YYWzTrAg7FSfF3IQuh4LjM4=";
# There are various submodules in `third_party/`.
fetchSubmodules = true;
};
@ -118,9 +118,13 @@ stdenv.mkDerivation rec {
"-DJPEGXL_FORCE_NEON=ON"
];
# the second substitution fix regex for a2x script
# https://github.com/libjxl/libjxl/pull/3842
postPatch = ''
substituteInPlace plugins/gdk-pixbuf/jxl.thumbnailer \
--replace '/usr/bin/gdk-pixbuf-thumbnailer' "$out/libexec/gdk-pixbuf-thumbnailer-jxl"
substituteInPlace CMakeLists.txt \
--replace 'sh$' 'sh( -e$|$)'
'';
postInstall = lib.optionalString enablePlugins ''