summaryrefslogtreecommitdiffstats
path: root/pkgs/games
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2021-09-05 22:30:50 +0200
committerPavol Rusnak <pavol@rusnak.io>2021-09-05 22:31:05 +0200
commit03637fe5869c1f854ad05c6d301812eda3ac1761 (patch)
tree05671b931604ea16f569fcb8c1fa3d76a4a90984 /pkgs/games
parent105b9fcb8b685cacb91ba478ff25e620a3e2e50b (diff)
sdlpop: 1.21 -> 1.22
+ fix build on darwin
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/sdlpop/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/games/sdlpop/default.nix b/pkgs/games/sdlpop/default.nix
index cef321fdce4e..f9b91e3dc158 100644
--- a/pkgs/games/sdlpop/default.nix
+++ b/pkgs/games/sdlpop/default.nix
@@ -8,22 +8,25 @@
stdenv.mkDerivation rec {
pname = "sdlpop";
- version = "1.21";
+ version = "1.22";
src = fetchFromGitHub {
owner = "NagyD";
repo = "SDLPoP";
rev = "v${version}";
- sha256 = "1q4mnyg8v4420f1bp24v8lgi335vijdv61yi3fan14jgfzl38l7w";
+ sha256 = "1yy5r1r0hv0xggk8qd8bwk2zy7abpv89nikq4flqgi53fc5q9xl7";
};
nativeBuildInputs = [ pkg-config makeWrapper copyDesktopItems ];
+
buildInputs = [ SDL2 SDL2_image ];
makeFlags = [ "-C" "src" ];
preBuild = ''
- substituteInPlace src/Makefile --replace "CC = gcc" "CC = ${stdenv.cc.targetPrefix}gcc"
+ substituteInPlace src/Makefile \
+ --replace "CC = gcc" "CC = ${stdenv.cc.targetPrefix}cc" \
+ --replace "CFLAGS += -I/opt/local/include" "CFLAGS += -I${SDL2.dev}/include/SDL2 -I${SDL2_image}/include/SDL2"
'';
# The prince binary expects two things of the working directory it is called from:
@@ -63,6 +66,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus;
maintainers = with maintainers; [ iblech ];
platforms = platforms.unix;
- broken = stdenv.isDarwin;
};
}