nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

nanoboyadvance: Build the Darwin app bundle (#353773)

authored by

Aleksana and committed by
GitHub
b5565725 705ddfa7

+23 -7
+23 -7
pkgs/by-name/na/nanoboyadvance/package.nix
··· 37 37 url = "https://github.com/nba-emu/NanoBoyAdvance/commit/f5551cc1aa6a12b3d65dd56d186c73a67f3d9dd6.patch"; 38 38 hash = "sha256-TCyN0qz7o7BDhVZtaTsWCZAcKThi5oVqUM0NGmj44FI="; 39 39 }) 40 + (fetchpatch { 41 + name = "fix-darwin-bundle-install-path.patch"; 42 + url = "https://github.com/nba-emu/NanoBoyAdvance/commit/bd07a261141cd1f67b828d20f6d01a97adf91c16.patch"; 43 + hash = "sha256-Nqz35PGfPBZ3Lg6szez4k3R/NkgObNndvbxY8JCY40Y"; 44 + }) 40 45 ]; 41 46 42 47 nativeBuildInputs = [ ··· 58 53 libunarr 59 54 ]; 60 55 61 - cmakeFlags = [ 62 - (lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_GLAD" "${gladSrc}") 63 - (lib.cmakeBool "USE_SYSTEM_FMT" true) 64 - (lib.cmakeBool "USE_SYSTEM_TOML11" true) 65 - (lib.cmakeBool "USE_SYSTEM_UNARR" true) 66 - (lib.cmakeBool "PORTABLE_MODE" false) 67 - ]; 56 + cmakeFlags = 57 + [ 58 + (lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_GLAD" "${gladSrc}") 59 + (lib.cmakeBool "USE_SYSTEM_FMT" true) 60 + (lib.cmakeBool "USE_SYSTEM_TOML11" true) 61 + (lib.cmakeBool "USE_SYSTEM_UNARR" true) 62 + (lib.cmakeBool "PORTABLE_MODE" false) 63 + ] 64 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 65 + (lib.cmakeBool "MACOS_BUILD_APP_BUNDLE" true) 66 + (lib.cmakeBool "MACOS_BUNDLE_QT" false) 67 + ]; 68 + 69 + # Make it runnable from the terminal on Darwin 70 + postInstall = lib.optionals stdenv.hostPlatform.isDarwin '' 71 + mkdir "$out/bin" 72 + ln -s "$out/Applications/NanoBoyAdvance.app/Contents/MacOS/NanoBoyAdvance" "$out/bin/NanoBoyAdvance" 73 + ''; 68 74 69 75 meta = { 70 76 description = "Cycle-accurate Nintendo Game Boy Advance emulator";