From 7317302c7775de8094472cd8cfd8a0ee062ae2f2 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Tue, 10 May 2022 13:09:27 +0800 Subject: [PATCH] tree-wide: SDL may not have a .dev --- pkgs/games/gargoyle/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/games/gargoyle/default.nix b/pkgs/games/gargoyle/default.nix index bd592dbc55d9..64841fbfea77 100644 --- a/pkgs/games/gargoyle/default.nix +++ b/pkgs/games/gargoyle/default.nix @@ -6,7 +6,7 @@ let jamenv = '' unset AR '' + (if stdenv.isDarwin then '' - export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${SDL.dev}/include/SDL" + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${lib.getDev SDL}/include/SDL" export GARGLKINI="$out/Applications/Gargoyle.app/Contents/Resources/garglk.ini" '' else '' export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/libexec/gargoyle"