Skip to content

openrct2: 0.4.26 -> 0.4.28#448537

Closed
keenanweaver wants to merge 1 commit intoNixOS:stagingfrom
keenanweaver:openrct2
Closed

openrct2: 0.4.26 -> 0.4.28#448537
keenanweaver wants to merge 1 commit intoNixOS:stagingfrom
keenanweaver:openrct2

Conversation

@keenanweaver
Copy link
Member

@keenanweaver keenanweaver commented Oct 4, 2025

  • Bump to 0.4.28

Changelog: https://github.com/OpenRCT2/OpenRCT2/releases/tag/v0.4.28
Compare: OpenRCT2/OpenRCT2@v0.4.26...v0.4.28

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Oct 4, 2025
@nix-owners nix-owners bot requested review from kylerisse and oxzi October 4, 2025 13:47
@keenanweaver
Copy link
Member Author

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 448537
Commit: cfc477a7d8cc237e2fb59240659d8e2cc44e3e84 (subsequent changes)
Merge: 116afed436a2cdd4091fc86be5c36117adad57fb

Logs: https://github.com/keenanweaver/nixpkgs-review-gha/actions/runs/18245113653


x86_64-linux

✅ 1 package built:
  • openrct2

aarch64-linux

✅ 1 package built:
  • openrct2

x86_64-darwin

No rebuilds


aarch64-darwin

No rebuilds

Copy link
Member

@kylerisse kylerisse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Oct 4, 2025
@jopejoe1
Copy link
Member

nixpkgs-review result for #448537

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 448537
Commit: cfc477a7d8cc237e2fb59240659d8e2cc44e3e84 (subsequent changes)
Merge: 726a594cbc88d3d5734a2b0a836c7fd5e932e9fb

Logs: https://github.com/jopejoe1/nixpkgs-review-gha/actions/runs/18392152254


x86_64-linux

❌ 1 package failed to build:
  • openrct2

Error logs: `x86_64-linux`
openrct2
  544 |     p = std_fs::path(std::u8string_view(reinterpret_cast<const char8_t*>(s.data()), s.size()));
      |                                                                        ^
In file included from /nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/adl_serializer.hpp:15:
/nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp: In function 'void nlohmann::json_abi_v3_12_0::detail::to_json(BasicJsonType&, const std::filesystem::__cxx11::path&)':
/nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:447:16: error: 'u8string' in namespace 'std' does not name a type
  447 |     const std::u8string s = p.u8string();
      |                ^~~~~~~~
/nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:26:1: note: 'std::u8string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
   25 | #include <nlohmann/detail/iterators/iteration_proxy.hpp>
  +++ |+#include <string>
   26 | #include <nlohmann/detail/meta/cpp_future.hpp>
/nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:448:21: error: 's' was not declared in this scope
  448 |     j = std::string(s.begin(), s.end());
      |                     ^
[  1%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/Date.cpp.o
[  1%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/Diagnostic.cpp.o
make[2]: *** [CMakeFiles/libopenrct2.dir/build.make:79: CMakeFiles/libopenrct2.dir/src/openrct2/AssetPack.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/libopenrct2.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

aarch64-linux

❌ 1 package failed to build:
  • openrct2

Error logs: `aarch64-linux`
openrct2
  544 |     p = std_fs::path(std::u8string_view(reinterpret_cast<const char8_t*>(s.data()), s.size()));
      |                                                                        ^
In file included from /nix/store/46bn0pyxwgds134zq2s4n619k8a2j0ns-nlohmann_json-3.12.0/include/nlohmann/adl_serializer.hpp:15:
/nix/store/46bn0pyxwgds134zq2s4n619k8a2j0ns-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp: In function 'void nlohmann::json_abi_v3_12_0::detail::to_json(BasicJsonType&, const std::filesystem::__cxx11::path&)':
/nix/store/46bn0pyxwgds134zq2s4n619k8a2j0ns-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:447:16: error: 'u8string' in namespace 'std' does not name a type
  447 |     const std::u8string s = p.u8string();
      |                ^~~~~~~~
/nix/store/46bn0pyxwgds134zq2s4n619k8a2j0ns-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:26:1: note: 'std::u8string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
   25 | #include <nlohmann/detail/iterators/iteration_proxy.hpp>
  +++ |+#include <string>
   26 | #include <nlohmann/detail/meta/cpp_future.hpp>
/nix/store/46bn0pyxwgds134zq2s4n619k8a2j0ns-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:448:21: error: 's' was not declared in this scope
  448 |     j = std::string(s.begin(), s.end());
      |                     ^
[  1%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/Date.cpp.o
[  1%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/Diagnostic.cpp.o
make[2]: *** [CMakeFiles/libopenrct2.dir/build.make:79: CMakeFiles/libopenrct2.dir/src/openrct2/AssetPack.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/libopenrct2.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

x86_64-darwin

No rebuilds


aarch64-darwin

No rebuilds

@keenanweaver
Copy link
Member Author

Also failing on latest unstable commit keenanweaver@2e1338b. Wonder what changed.

└─>nix build github:keenanweaver/nixpkgs/openrct2-test-fix#openrct2 --impure
error: builder for '/nix/store/7zr7f1386vgfldk175lfk42h0ry34l1j-openrct2-0.4.27.drv' failed with exit code 2;
       last 50 log lines:
       >       |                                                                wchar_t
       > /nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/from_json.hpp:544:21: error: expected primary-expression before '(' token
       >   544 |     p = std_fs::path(std::u8string_view(reinterpret_cast<const char8_t*>(s.data()), s.size()));
       >       |                     ^
       > /nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/from_json.hpp:544:27: error: 'u8string_view' is not a member of 'std'; did you mean 'wstring_view'?
       >   544 |     p = std_fs::path(std::u8string_view(reinterpret_cast<const char8_t*>(s.data()), s.size()));
       >       |                           ^~~~~~~~~~~~~
       >       |                           wstring_view
       > /nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/from_json.hpp:544:64: error: expected '>' before 'char8_t'
       >   544 |     p = std_fs::path(std::u8string_view(reinterpret_cast<const char8_t*>(s.data()), s.size()));
       >       |                                                                ^~~~~~~
       > /nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/from_json.hpp:544:64: error: expected '(' before 'char8_t'
       >   544 |     p = std_fs::path(std::u8string_view(reinterpret_cast<const char8_t*>(s.data()), s.size()));
       >       |                                                                ^~~~~~~
       >       |                                                                (
       > /nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/from_json.hpp:544:72: error: expected primary-expression before '>' token
       >   544 |     p = std_fs::path(std::u8string_view(reinterpret_cast<const char8_t*>(s.data()), s.size()));
       >       |                                                                        ^
       > [  6%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/LandRaiseAction.cpp.o
       > In file included from /nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/adl_serializer.hpp:15:
       > /nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp: In function 'void nlohmann::json_abi_v3_12_0::detail::to_json(BasicJsonType&, const std::filesystem::__cxx11::path&)':
       > /nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:447:16: error: 'u8string' in namespace 'std' does not name a type
       >   447 |     const std::u8string s = p.u8string();
       >       |                ^~~~~~~~
       > /nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:26:1: note: 'std::u8string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
       >    25 | #include <nlohmann/detail/iterators/iteration_proxy.hpp>
       >   +++ |+#include <string>
       >    26 | #include <nlohmann/detail/meta/cpp_future.hpp>
       > /nix/store/j7nvp5651w4ibr4i2gl4dfx1gmjnvp1x-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:448:21: error: 's' was not declared in this scope
       >   448 |     j = std::string(s.begin(), s.end());
       >       |                     ^
       > [  7%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/LandSetHeightAction.cpp.o
       > [  7%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/LandSetRightsAction.cpp.o
       > [  7%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/LandSmoothAction.cpp.o
       > [  7%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/LargeSceneryPlaceAction.cpp.o
       > [  7%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/LargeSceneryRemoveAction.cpp.o
       > [  7%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/LargeScenerySetColourAction.cpp.o
       > [  8%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/LoadOrQuitAction.cpp.o
       > [  8%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/MapChangeSizeAction.cpp.o
       > [  8%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/MazePlaceTrackAction.cpp.o
       > [  8%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/MazeSetTrackAction.cpp.o
       > [  8%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/NetworkModifyGroupAction.cpp.o
       > [  8%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/ParkEntrancePlaceAction.cpp.o
       > [  8%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/ParkEntranceRemoveAction.cpp.o
       > [  9%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/actions/ParkMarketingAction.cpp.o
       > make[2]: *** [CMakeFiles/libopenrct2.dir/build.make:79: CMakeFiles/libopenrct2.dir/src/openrct2/AssetPack.cpp.o] Error 1
       > make[2]: *** Waiting for unfinished jobs....
       > make[2]: *** [CMakeFiles/libopenrct2.dir/build.make:331: CMakeFiles/libopenrct2.dir/src/openrct2/Version.cpp.o] Error 1
       > make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/libopenrct2.dir/all] Error 2
       > make: *** [Makefile:136: all] Error 2
       For full logs, run:
         nix log /nix/store/7zr7f1386vgfldk175lfk42h0ry34l1j-openrct2-0.4.27.drv

@keenanweaver
Copy link
Member Author

Seems to be the bump to 3.12 of nlohmann_json causing issues. The below derivation works, but I'm unsure if it's an ideal way to pin to an old version. Any guidance on how to proceed would be appreciated. @jopejoe1

{
  lib,
  stdenv,
  fetchFromGitHub,
  fetchurl,
  unzip,

  SDL2,
  cmake,
  curl,
  discord-rpc,
  duktape,
  expat,
  flac,
  fontconfig,
  freetype,
  gbenchmark,
  icu,
  innoextract,
  jansson,
  libGLU,
  libiconv,
  libogg,
  libpng,
  libpthreadstubs,
  libvorbis,
  libzip,
  nlohmann_json,
  openssl,
  pkg-config,
  speexdsp,
  zlib,
  withDiscordRpc ? false,
}:

let
  openrct2-version = "0.4.27";

  # Those versions MUST match the pinned versions within the CMakeLists.txt
  # file. The REPLAYS repository from the CMakeLists.txt is not necessary.
  objects-version = "1.7.3";
  openmsx-version = "1.6.1";
  opensfx-version = "1.0.6";
  title-sequences-version = "0.4.26";

  objects = fetchurl {
    url = "https://github.com/OpenRCT2/objects/releases/download/v${objects-version}/objects.zip";
    hash = "sha256-yBApJkV4cG7R24hmXhKnClg+cdxNPrTbJiU10vBYnqs=";
  };
  openmsx = fetchurl {
    url = "https://github.com/OpenRCT2/OpenMusic/releases/download/v${openmsx-version}/openmusic.zip";
    hash = "sha256-mUs1DTsYDuHLlhn+J/frrjoaUjKEDEvUeonzP6id4aE=";
  };
  opensfx = fetchurl {
    url = "https://github.com/OpenRCT2/OpenSoundEffects/releases/download/v${opensfx-version}/opensound.zip";
    hash = "sha256-BrkPPhnCFnUt9EHVUbJqnj4bp3Vb3SECUEtzv5k2CL4=";
  };
  title-sequences = fetchurl {
    url = "https://github.com/OpenRCT2/title-sequences/releases/download/v${title-sequences-version}/title-sequences.zip";
    hash = "sha256-2ruXh7FXY0L8pN2fZLP4z6BKfmzpwruWEPR7dikFyFg=";
  };

  # Pin to a specific version of nlohmann_json
  nlohmann_json_old = nlohmann_json.overrideAttrs (old: {
    version = "3.11.3";
    src = fetchFromGitHub {
      owner = "nlohmann";
      repo = "json";
      rev = "v3.11.3";
      hash = "sha256-7F0Jon+1oWL7uqet5i1IgHX0fUw/+z0QwEcA3zs5xHg=";
    };
  });
in
stdenv.mkDerivation (finalAttrs: {
  pname = "openrct2";
  version = openrct2-version;

  src = fetchFromGitHub {
    owner = "OpenRCT2";
    repo = "OpenRCT2";
    tag = "v${openrct2-version}";
    hash = "sha256-q/urQEbiPkwktLG3hOf6qOhbjJP4SuKOcsPQNx5dsAw=";
  };

  nativeBuildInputs = [
    cmake
    pkg-config
    unzip
  ];

  buildInputs = [
    SDL2
    curl
    duktape
    expat
    flac
    fontconfig
    freetype
    gbenchmark
    icu
    innoextract
    jansson
    libGLU
    libiconv
    libogg
    libpng
    libpthreadstubs
    libvorbis
    libzip
    nlohmann_json_old
    openssl
    speexdsp
    zlib
  ]
  ++ lib.optional withDiscordRpc discord-rpc;

  cmakeFlags = [
    (lib.cmakeBool "DOWNLOAD_OBJECTS" false)
    (lib.cmakeBool "DOWNLOAD_OPENMSX" false)
    (lib.cmakeBool "DOWNLOAD_OPENSFX" false)
    (lib.cmakeBool "DOWNLOAD_TITLE_SEQUENCES" false)
    (lib.cmakeBool "DISABLE_DISCORD_RPC" (!withDiscordRpc))
  ];

  postUnpack = ''
    mkdir -p $sourceRoot/data/{object,sequence}
    unzip -o ${objects} -d $sourceRoot/data/object
    unzip -o ${openmsx} -d $sourceRoot/data
    unzip -o ${opensfx} -d $sourceRoot/data
    unzip -o ${title-sequences} -d $sourceRoot/data/sequence
  '';

  # Fix blank changelog & contributors screen. See https://github.com/OpenRCT2/OpenRCT2/issues/16988
  postPatch = ''
    substituteInPlace src/openrct2/platform/Platform.Linux.cpp \
      --replace-fail "/usr/share/doc/openrct2" "$out/share/doc/openrct2"
  '';

  preConfigure =
    # Verify that the correct version of each third party repository is used.
    (
      let
        versionCheck = cmakeKey: version: ''
          grep -q '^set(${cmakeKey}_VERSION "${version}")$' CMakeLists.txt \
            || (echo "${cmakeKey} differs from expected version!"; exit 1)
        '';
      in
      (versionCheck "OBJECTS" objects-version)
      + (versionCheck "OPENMSX" openmsx-version)
      + (versionCheck "OPENSFX" opensfx-version)
      + (versionCheck "TITLE_SEQUENCE" title-sequences-version)
    );

  meta = {
    description = "Open source re-implementation of RollerCoaster Tycoon 2 (original game required)";
    homepage = "https://openrct2.io/";
    downloadPage = "https://github.com/OpenRCT2/OpenRCT2/releases";
    license = lib.licenses.gpl3Only;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [
      oxzi
      keenanweaver
      kylerisse
    ];
  };
})

@jopejoe1
Copy link
Member

That's a bug in nlohmann_json and should be fixed in it by applying a patch to it and not locking a specific version in packages. The fix needed is also already merged Upstream nlohmann/json#4736.

@keenanweaver
Copy link
Member Author

keenanweaver commented Oct 10, 2025

Thanks for pointing that out--I wouldn't have found that patch. Created an MR: #450853

@keenanweaver keenanweaver changed the title openrct2: 0.4.26 -> 0.4.27 openrct2: 0.4.26 -> 0.4.28 Nov 1, 2025
Copy link
Member

@PedroHLC PedroHLC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@PedroHLC PedroHLC requested a review from JohnRTitor November 3, 2025 14:05
@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Nov 3, 2025
@JohnRTitor
Copy link
Member

@ofborg build openrct2

@JohnRTitor
Copy link
Member

Ofborg can't seem to build this, can we have a fix? https://logs.ofborg.org/?key=nixos/nixpkgs.448537&attempt_id=c8292590-df66-4a32-a3e1-a4a1077e9feb

@JohnRTitor
Copy link
Member

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 448537
Commit: 8ebf4cab8e0192a3590d17821201b447add8b54c (subsequent changes)
Merge: b9dc60b029bb2a9fedd330588328c9cdf4753c17

Logs: https://github.com/JohnRTitor/nixpkgs-review-gha/actions/runs/19039662127


x86_64-linux

❌ 1 package failed to build:
  • openrct2

Error logs: `x86_64-linux`
openrct2
      |                                                                        ^
[  1%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/Date.cpp.o
In file included from /nix/store/0cvzm03flrngrv5lf8isy9zzr3wx0awh-nlohmann_json-3.12.0/include/nlohmann/adl_serializer.hpp:15:
/nix/store/0cvzm03flrngrv5lf8isy9zzr3wx0awh-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp: In function 'void nlohmann::json_abi_v3_12_0::detail::to_json(BasicJsonType&, const std::filesystem::__cxx11::path&)':
/nix/store/0cvzm03flrngrv5lf8isy9zzr3wx0awh-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:447:16: error: 'u8string' in namespace 'std' does not name a type
  447 |     const std::u8string s = p.u8string();
      |                ^~~~~~~~
/nix/store/0cvzm03flrngrv5lf8isy9zzr3wx0awh-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:26:1: note: 'std::u8string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
   25 | #include <nlohmann/detail/iterators/iteration_proxy.hpp>
  +++ |+#include <string>
   26 | #include <nlohmann/detail/meta/cpp_future.hpp>
/nix/store/0cvzm03flrngrv5lf8isy9zzr3wx0awh-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:448:21: error: 's' was not declared in this scope
  448 |     j = std::string(s.begin(), s.end());
      |                     ^
[  1%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/Diagnostic.cpp.o
[  1%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/Editor.cpp.o
make[2]: *** [CMakeFiles/libopenrct2.dir/build.make:79: CMakeFiles/libopenrct2.dir/src/openrct2/AssetPack.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/libopenrct2.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

aarch64-linux

❌ 1 package failed to build:
  • openrct2

Error logs: `aarch64-linux`
openrct2
  544 |     p = std_fs::path(std::u8string_view(reinterpret_cast<const char8_t*>(s.data()), s.size()));
      |                                                                        ^
In file included from /nix/store/gmj9hhw0g4yhxjj79yhmhy0n7117fw67-nlohmann_json-3.12.0/include/nlohmann/adl_serializer.hpp:15:
/nix/store/gmj9hhw0g4yhxjj79yhmhy0n7117fw67-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp: In function 'void nlohmann::json_abi_v3_12_0::detail::to_json(BasicJsonType&, const std::filesystem::__cxx11::path&)':
/nix/store/gmj9hhw0g4yhxjj79yhmhy0n7117fw67-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:447:16: error: 'u8string' in namespace 'std' does not name a type
  447 |     const std::u8string s = p.u8string();
      |                ^~~~~~~~
/nix/store/gmj9hhw0g4yhxjj79yhmhy0n7117fw67-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:26:1: note: 'std::u8string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
   25 | #include <nlohmann/detail/iterators/iteration_proxy.hpp>
  +++ |+#include <string>
   26 | #include <nlohmann/detail/meta/cpp_future.hpp>
/nix/store/gmj9hhw0g4yhxjj79yhmhy0n7117fw67-nlohmann_json-3.12.0/include/nlohmann/detail/conversions/to_json.hpp:448:21: error: 's' was not declared in this scope
  448 |     j = std::string(s.begin(), s.end());
      |                     ^
[  1%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/Date.cpp.o
[  1%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/Diagnostic.cpp.o
make[2]: *** [CMakeFiles/libopenrct2.dir/build.make:79: CMakeFiles/libopenrct2.dir/src/openrct2/AssetPack.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/libopenrct2.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

x86_64-darwin

No rebuilds


aarch64-darwin

No rebuilds

@PedroHLC
Copy link
Member

PedroHLC commented Nov 3, 2025

Ofborg can't seem to build this, can we have a fix?

Missing a rebase on newer nixpkgs.

@keenanweaver
Copy link
Member Author

Ofborg can't seem to build this, can we have a fix?

Missing a rebase on newer nixpkgs.

Looks like the nlohmann fix is still in staging-next.

@JohnRTitor
Copy link
Member

Please retarget this to staging then.

@keenanweaver keenanweaver changed the base branch from master to staging November 4, 2025 01:41
@nixpkgs-ci nixpkgs-ci bot closed this Nov 4, 2025
@nixpkgs-ci nixpkgs-ci bot reopened this Nov 4, 2025
@JohnRTitor
Copy link
Member

Sorry I meant staging-next.

@keenanweaver keenanweaver mentioned this pull request Nov 4, 2025
13 tasks
@keenanweaver
Copy link
Member Author

Superseding this PR with the new one.

@keenanweaver keenanweaver deleted the openrct2 branch December 14, 2025 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants