Skip to content

Commit

Permalink
aegisub: if openal is disabled && on darwin, exclude from compile
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahec committed Nov 13, 2024
1 parent 74d0079 commit 7ae5035
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkgs/by-name/ae/aegisub/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ stdenv.mkDerivation (finalAttrs: {
zlib
]
++ lib.optionals alsaSupport [ alsa-lib ]
++ lib.optionals openalSupport [
(if stdenv.hostPlatform.isDarwin then darwin.apple_sdk.frameworks.OpenAL else openal)
]
++ lib.optionals (openalSupport && !stdenv.hostPlatform.isDarwin) [ openal ]
++ lib.optionals portaudioSupport [ portaudio ]
++ lib.optionals pulseaudioSupport [ libpulseaudio ]
++ lib.optionals spellcheckSupport [ hunspell ];
Expand Down Expand Up @@ -129,6 +127,11 @@ stdenv.mkDerivation (finalAttrs: {

cmakeBuildDir = "build-directory";

cmakeFlags = lib.optionals (stdenv.hostPlatform.isDarwin && !openalSupport) [
# OpenAL is in the SDK and linked unless we disable it
"-DWITH_OPENAL=OFF"
];

strictDeps = true;

meta = {
Expand Down

0 comments on commit 7ae5035

Please sign in to comment.