From 1bdde03f71cfc428d5ff7324cfb8be06076e2471 Mon Sep 17 00:00:00 2001 From: Michael Wang Date: Sat, 20 Jun 2026 18:40:22 +1000 Subject: [PATCH] libultrahdr: fix tests on big-endian https://github.com/google/libultrahdr/pull/396 --- pkgs/by-name/li/libultrahdr/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/li/libultrahdr/package.nix b/pkgs/by-name/li/libultrahdr/package.nix index f63521ee4742..c4328f72fcfb 100644 --- a/pkgs/by-name/li/libultrahdr/package.nix +++ b/pkgs/by-name/li/libultrahdr/package.nix @@ -47,6 +47,13 @@ stdenv.mkDerivation (finalAttrs: { # Based on https://github.com/google/libultrahdr/pull/383 # modified to target 1.4.0 instead of main ./remove-platform-and-detection-logic.patch + + # fix tests on big-endian + # https://github.com/google/libultrahdr/pull/396 + (fetchpatch { + url = "https://github.com/google/libultrahdr/commit/13a058f452d846e43d4691f6885eeeaa8b0ea8d0.patch"; + hash = "sha256-2ZVvBMz8wQLEThuXdRJbbx5m2ouRZpxVWoH88RLmit4="; + }) ]; # CMake incorrect absolute include/lib paths: https://github.com/NixOS/nixpkgs/issues/144170