mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
uxn: fix builds in Darwin
This commit is contained in:
parent
c7c6a3a73e
commit
106a47787c
1 changed files with 4 additions and 2 deletions
|
@ -35,7 +35,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs build.sh
|
patchShebangs build.sh
|
||||||
substituteInPlace build.sh \
|
substituteInPlace build.sh \
|
||||||
--replace "-L/usr/local/lib " ""
|
--replace "-L/usr/local/lib " "" \
|
||||||
|
--replace "$(brew --prefix)/lib/libSDL2.a " "" \
|
||||||
|
--replace "--static-libs" "--libs" \
|
||||||
|
--replace " | sed -e 's/-lSDL2 //'" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
@ -68,6 +71,5 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
maintainers = with lib.maintainers; [ ];
|
maintainers = with lib.maintainers; [ ];
|
||||||
mainProgram = "uxnemu";
|
mainProgram = "uxnemu";
|
||||||
inherit (SDL2.meta) platforms;
|
inherit (SDL2.meta) platforms;
|
||||||
broken = stdenv.hostPlatform.isDarwin;
|
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue