Unverified Commit ce5a1815 authored by Fabián Heredia Montiel's avatar Fabián Heredia Montiel Committed by GitHub
Browse files

libjxl: 0.10.3 -> 0.11.0 (#343546)

parents 96fbd2f5 23f433fb
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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 ''