Loading pkgs/by-name/na/nanoboyadvance/package.nix +23 −7 Original line number Diff line number Diff line Loading @@ -37,6 +37,11 @@ stdenv.mkDerivation (finalAttrs: { url = "https://github.com/nba-emu/NanoBoyAdvance/commit/f5551cc1aa6a12b3d65dd56d186c73a67f3d9dd6.patch"; hash = "sha256-TCyN0qz7o7BDhVZtaTsWCZAcKThi5oVqUM0NGmj44FI="; }) (fetchpatch { name = "fix-darwin-bundle-install-path.patch"; url = "https://github.com/nba-emu/NanoBoyAdvance/commit/bd07a261141cd1f67b828d20f6d01a97adf91c16.patch"; hash = "sha256-Nqz35PGfPBZ3Lg6szez4k3R/NkgObNndvbxY8JCY40Y"; }) ]; nativeBuildInputs = [ Loading @@ -53,14 +58,25 @@ stdenv.mkDerivation (finalAttrs: { libunarr ]; cmakeFlags = [ cmakeFlags = [ (lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_GLAD" "${gladSrc}") (lib.cmakeBool "USE_SYSTEM_FMT" true) (lib.cmakeBool "USE_SYSTEM_TOML11" true) (lib.cmakeBool "USE_SYSTEM_UNARR" true) (lib.cmakeBool "PORTABLE_MODE" false) ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ (lib.cmakeBool "MACOS_BUILD_APP_BUNDLE" true) (lib.cmakeBool "MACOS_BUNDLE_QT" false) ]; # Make it runnable from the terminal on Darwin postInstall = lib.optionals stdenv.hostPlatform.isDarwin '' mkdir "$out/bin" ln -s "$out/Applications/NanoBoyAdvance.app/Contents/MacOS/NanoBoyAdvance" "$out/bin/NanoBoyAdvance" ''; meta = { description = "Cycle-accurate Nintendo Game Boy Advance emulator"; homepage = "https://github.com/nba-emu/NanoBoyAdvance"; Loading Loading
pkgs/by-name/na/nanoboyadvance/package.nix +23 −7 Original line number Diff line number Diff line Loading @@ -37,6 +37,11 @@ stdenv.mkDerivation (finalAttrs: { url = "https://github.com/nba-emu/NanoBoyAdvance/commit/f5551cc1aa6a12b3d65dd56d186c73a67f3d9dd6.patch"; hash = "sha256-TCyN0qz7o7BDhVZtaTsWCZAcKThi5oVqUM0NGmj44FI="; }) (fetchpatch { name = "fix-darwin-bundle-install-path.patch"; url = "https://github.com/nba-emu/NanoBoyAdvance/commit/bd07a261141cd1f67b828d20f6d01a97adf91c16.patch"; hash = "sha256-Nqz35PGfPBZ3Lg6szez4k3R/NkgObNndvbxY8JCY40Y"; }) ]; nativeBuildInputs = [ Loading @@ -53,14 +58,25 @@ stdenv.mkDerivation (finalAttrs: { libunarr ]; cmakeFlags = [ cmakeFlags = [ (lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_GLAD" "${gladSrc}") (lib.cmakeBool "USE_SYSTEM_FMT" true) (lib.cmakeBool "USE_SYSTEM_TOML11" true) (lib.cmakeBool "USE_SYSTEM_UNARR" true) (lib.cmakeBool "PORTABLE_MODE" false) ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ (lib.cmakeBool "MACOS_BUILD_APP_BUNDLE" true) (lib.cmakeBool "MACOS_BUNDLE_QT" false) ]; # Make it runnable from the terminal on Darwin postInstall = lib.optionals stdenv.hostPlatform.isDarwin '' mkdir "$out/bin" ln -s "$out/Applications/NanoBoyAdvance.app/Contents/MacOS/NanoBoyAdvance" "$out/bin/NanoBoyAdvance" ''; meta = { description = "Cycle-accurate Nintendo Game Boy Advance emulator"; homepage = "https://github.com/nba-emu/NanoBoyAdvance"; Loading