mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
sdlpop: 1.21 -> 1.22
+ fix build on darwin
This commit is contained in:
parent
105b9fcb8b
commit
03637fe586
@ -8,22 +8,25 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "sdlpop";
|
pname = "sdlpop";
|
||||||
version = "1.21";
|
version = "1.22";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "NagyD";
|
owner = "NagyD";
|
||||||
repo = "SDLPoP";
|
repo = "SDLPoP";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1q4mnyg8v4420f1bp24v8lgi335vijdv61yi3fan14jgfzl38l7w";
|
sha256 = "1yy5r1r0hv0xggk8qd8bwk2zy7abpv89nikq4flqgi53fc5q9xl7";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config makeWrapper copyDesktopItems ];
|
nativeBuildInputs = [ pkg-config makeWrapper copyDesktopItems ];
|
||||||
|
|
||||||
buildInputs = [ SDL2 SDL2_image ];
|
buildInputs = [ SDL2 SDL2_image ];
|
||||||
|
|
||||||
makeFlags = [ "-C" "src" ];
|
makeFlags = [ "-C" "src" ];
|
||||||
|
|
||||||
preBuild = ''
|
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:
|
# The prince binary expects two things of the working directory it is called from:
|
||||||
@ -63,6 +66,5 @@ stdenv.mkDerivation rec {
|
|||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ iblech ];
|
maintainers = with maintainers; [ iblech ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
broken = stdenv.isDarwin;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user