Skip to content
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.0.4 #16685

Closed
wants to merge 1 commit into from
Closed

Conversation

joepie91
Copy link
Contributor

@joepie91 joepie91 commented Jul 3, 2016

Motivation for this change

Package is currently missing from nixpkgs, and this fixes that :)

Things done
  • Tested using sandboxing
    (nix.useChroot on NixOS,
    or option build-use-chroot in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • OS X
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Not familiar with either sandboxing or nox-review and didn't find out about their existence until I went to create a PR (nor does anything really seem to explain this), so I haven't done those steps yet.

This PR adds two packages - openrct2 (marked 'unfree') and openrct2-engine (marked GPL3). The reason for this is that OpenRCT2 is an RCT2 clone that is currently in a state where there are no original assets yet. This means that in the majority of cases, the user will want to install the game using assets from the GOG installer for the original RCT2, and so that is the default.

Both for the purpose of Hydra builds and for users who want to use a different source for their game assets, the openrct2-engine package is available, which builds and installs just the OpenRCT2 engine itself. The openrct2 package will install openrct2-engine, extract the assets from the GOG installer (or ask the user for it if they haven't provided it yet), and then use a wrapper to load OpenRCT2 with the installed assets.

The wrapper currently modifies the OpenRCT2 configuration file in the user's home directory; unfortunately, this cannot be resolved until OpenRCT2/OpenRCT2#3981 is fixed.

Note that this package is only available in an i686 variant - this is intentional, as it is not currently possible to build a 64-bit version of OpenRCT2.

EDIT: Forgot to mention, I had to add a callPackages_i686 to top_level.nix as well, as it didn't exist yet.

@mention-bot
Copy link

@joepie91, thanks for your PR! By analyzing the annotation information on this pull request, we identified @zimbatm, @edolstra and @vcunat to be potential reviewers

@@ -0,0 +1,41 @@
{ stdenv, fetchurl, cmake, pkgconfig
, SDL2, SDL2_ttf, fontconfig, jansson, speexdsp, openssl, curl }:
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need openssl for 0.0.4

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@janisozaur Hmm, the build instructions claim that it's an (optional) dependency. Are those instructions outdated?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, they are in sync with our develop branch. You are using older version of code.

Copy link
Contributor

Choose a reason for hiding this comment

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

libzip is also required now.

})
openrct2
openrct2-engine;

Copy link
Member

Choose a reason for hiding this comment

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

if you add both to top-level, then why bother creating a set first in default.nix and then inheriting from that set?

@joachifm
Copy link
Contributor

@joepie91 what is the status of this?

@joachifm
Copy link
Contributor

@joepie91 ping

@joepie91
Copy link
Contributor Author

Apologies, I've been unexpectedly busy lately, and just switched my main system over to NixOS. I still need to remove the openssl dependency (and probably rebase) - I'll do that later today, after I've gotten my editor working :)

@janisozaur
Copy link
Contributor

janisozaur commented Nov 9, 2016

We have made significant strides with openrct2, it's fully functional and architecture independent (as long as we're talking little-endian archs), this could get updated to reflect that fact.

We haven't yet made a release, but we plan on having it at some point in near future.

You may also want to know that we now have run-time option to select rct2-data-path: https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/cmdline/RootCommands.cpp#L88

a more flexible park with optionally no restrictions or
finance.
'';
homepage = http://www.openrct2.website/;
Copy link
Contributor

Choose a reason for hiding this comment

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

no www. in here.

@joepie91
Copy link
Contributor Author

joepie91 commented Nov 25, 2016

I've not had enough time to look at this before due to personal circumstances, but I'll have a look at this and fix it up tomorrow.

@janisozaur: it's fully functional and architecture independent (as long as we're talking little-endian archs), this could get updated to reflect that fact.

What specifically would you like to see changed?

@janisozaur
Copy link
Contributor

We don't require i686 anymore, so you can target native package, which I assume in most cases would be x86_64

@joepie91
Copy link
Contributor Author

@janisozaur There doesn't appear to have been a new stable release, though? http://openrct2.website still shows 0.0.4 as the latest stable release for Linux, and that one didn't support x86_64.

Or was the release changed without incrementing the version number?

@matthiasbeyer
Copy link
Contributor

There is a 0.0.6 now. Please get this ready, I want to try it out!

Also, feel free to put my in as maintainer of the package.

@copumpkin
Copy link
Member

Is this stalled?

@janisozaur
Copy link
Contributor

@copumpkin apparently yes. If you're NixOS user, maybe you can take it up? Feel free to join our gitter chat (https://gitter.im/OpenRCT2/OpenRCT2) if you have questions

@vcunat
Copy link
Member

vcunat commented Oct 15, 2017

Probably superseded by #30409

@vcunat vcunat mentioned this pull request Oct 15, 2017
8 tasks
@fpletz
Copy link
Member

fpletz commented Oct 20, 2017

Closing because #30409 was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet