From 7e903c3d5382a5afd748a3f3a43c39202e72a20f Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Sun, 15 Sep 2024 16:14:37 +0200 Subject: [PATCH] sioyek: Provide deprecated GL_CLAMP macro --- overlay/fixes.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/overlay/fixes.nix b/overlay/fixes.nix index 6a8a6e7..9dbb5c1 100644 --- a/overlay/fixes.nix +++ b/overlay/fixes.nix @@ -1,6 +1,6 @@ { nixpkgs, ... }: final: prev: let - inherit (nixpkgs.lib) optionalAttrs; + inherit (nixpkgs.lib) optionalAttrs toList; inherit (prev.stdenv) hostPlatform; in { redis = prev.redis.overrideAttrs ({ @@ -22,6 +22,13 @@ in { }); }; }; + + sioyek = prev.sioyek.overrideAttrs (prevAttrs: { + env = prevAttrs.env or { } // { + NIX_CFLAGS_COMPILE = toList prevAttrs.env.NIX_CFLAGS_COMPILE or [ ] + ++ [ "-DGL_CLAMP=GL_CLAMP_TO_EDGE" ] |> toString; + }; + }); } // optionalAttrs hostPlatform.isRiscV64 ({ boehmgc = prev.boehmgc.overrideAttrs (prevAttrs: { postPatch = prevAttrs.postPatch or "" + ''