From b9451807bb6085d0e8775dd23abb337a27ac1632 Mon Sep 17 00:00:00 2001 From: K900 Date: Wed, 8 Apr 2026 09:14:37 +0300 Subject: [PATCH] libfyaml: cherry-pick fixes for 32-bit builds --- pkgs/by-name/li/libfyaml/package.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/by-name/li/libfyaml/package.nix b/pkgs/by-name/li/libfyaml/package.nix index 0c841e5b7d3b..ebbaae3748d8 100644 --- a/pkgs/by-name/li/libfyaml/package.nix +++ b/pkgs/by-name/li/libfyaml/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, pkg-config, autoreconfHook, testers, @@ -18,6 +19,18 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-mRQQe+J5wtLt/bI/Wer9TVGdU3a1zp3zFCm4oNQON8M="; }; + # backport 32-bit build fixes + patches = [ + (fetchpatch { + url = "https://github.com/pantoniou/libfyaml/commit/0982fcefc6a16d4c8cb5b06747d3fc8e630de3ae.diff"; + hash = "sha256-aDubIn+et+1fWE7XU7a5AGZVacVFbAbC1PoSDrA6hXw="; + }) + (fetchpatch { + url = "https://github.com/pantoniou/libfyaml/commit/9192deaac095f9881cc1e5756dede683f36b09d6.diff"; + hash = "sha256-cNL9wQtxIRg/ShZLJP4qHYNFRrYo9kRG+/U+3FiUeaI="; + }) + ]; + nativeBuildInputs = [ autoreconfHook pkg-config