New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openrct2: init at 0.1.1 #30409
openrct2: init at 0.1.1 #30409
Conversation
I just updated the expression for Edit: Adding Edit 2: I've restricted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Works like a charm on my NixOS machine.
Just for record, there's also an older PR: #16685 |
@vcunat Sorry, I didn't knew about the older one and, for some reasons, haven't searched for it. However, the mentioned PR seems to be stalled and is outdated. Are there arguments against proceeding with this one? |
I know of no such arguments. I mainly wanted to notify both sides. |
pkgs/games/openrct2/default.nix
Outdated
cd ${sourceRoot}/build | ||
cmake -DCMAKE_BUILD_TYPE=RELWITHDEBINFO \ | ||
-DDOWNLOAD_TITLE_SEQUENCES=OFF \ | ||
-DCMAKE_INSTALL_PREFIX=$out \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmakeFlags = [];
can be used here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like one can't write $out
in cmakeFlags
. The workarounds I found in the nixpkgs where working with adding this cmake-flag as a command in preConfigure
which seems quite ugly for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to, it is already added by default: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/build-managers/cmake/setup-hook.sh#L29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I didn't knew how smart the cmake-wrapper was. Thanks!
pkgs/games/openrct2/default.nix
Outdated
|
||
configurePhase = '' | ||
mkdir ${sourceRoot}/build | ||
mkdir ${sourceRoot}/usr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could go into preConfigure
then build
should be handled by cmake itself.
pkgs/games/openrct2/default.nix
Outdated
|
||
buildPhase = "make all g2"; | ||
|
||
installPhase = "make install"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the default.
pkgs/games/openrct2/default.nix
Outdated
.. | ||
''; | ||
|
||
buildPhase = "make all g2"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makeFlags = ["all" "g2"];
3ef1e68
to
9f91719
Compare
Are there any more wishes for changes? How's the status? |
Nice to see this merged! You may want to update the list here: https://github.com/OpenRCT2/OpenRCT2#2-downloading-the-game-pre-built The other PR, #16685, had some |
I'll create a PR to add the NixOS-package to this list. However, I have no knowledge of GOG and honestly don't want to use it. If someone has interest in this, perhaps a new issue or - even better - a PR should be created. |
Motivation for this change
This PR adds the open source re-implementation of RollerCoaster Tycoon 2, OpenRCT2, to the nixpkgs.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)