From e5713cbb3dec1b0af2ff2423cc00cf7060be3b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 2 Jul 2026 11:15:33 +0200 Subject: [PATCH] sdlpop: fix --replace substitutions - the first one seems OK, converted to a non-deprecated variant - the second one didn't match (anymore) --- pkgs/by-name/sd/sdlpop/package.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/by-name/sd/sdlpop/package.nix b/pkgs/by-name/sd/sdlpop/package.nix index 070405981d03..0283038015d6 100644 --- a/pkgs/by-name/sd/sdlpop/package.nix +++ b/pkgs/by-name/sd/sdlpop/package.nix @@ -39,8 +39,7 @@ stdenv.mkDerivation (finalAttrs: { preBuild = '' substituteInPlace src/Makefile \ - --replace "CC = gcc" "CC = ${stdenv.cc.targetPrefix}cc" \ - --replace "CFLAGS += -I/opt/local/include" "CFLAGS += -I${lib.getInclude SDL2}/include/SDL2 -I${SDL2_image}/include/SDL2" + --replace-fail "CC = gcc" "CC = ${stdenv.cc.targetPrefix}cc" ''; # The prince binary expects two things of the working directory it is called from: