Skip to content

Instantly share code, notes, and snippets.

@AcouBass
Last active November 25, 2017 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AcouBass/f959d6551b5b23fce75d9f86a7454e2d to your computer and use it in GitHub Desktop.
Save AcouBass/f959d6551b5b23fce75d9f86a7454e2d to your computer and use it in GitHub Desktop.
OpenRCT2 nix
{ stdenv, fetchFromGitHub, mesa, libX11, SDL2, SDL2_ttf, curl, cmake, jansson, speexdsp, openssl, libpng12, fontconfig, libzip, pkgconfig, glew }:
stdenv.mkDerivation rec {
version = "0.1.1";
name = "OpenRCT2-${version}";
src = fetchFromGitHub {
owner = "OpenRCT2";
repo = "OpenRCT2";
rev = "46012651c531e9d5b5202b9521ced8126e30ce8f";
sha256 = "1xxwqx2gzvsdrsy76rz3sys9m4pyn9q25nbnkba3cw1z4l2b73lg";
};
/* NIX_CFLAGS_COMPILE="-I${stdenv.lib.getDev SDL2_ttf}/include/SDL2/SDL_ttf.h"; */
buildInputs = [ cmake pkgconfig libzip openssl libpng12 speexdsp jansson fontconfig SDL2 glew curl mesa libX11 ];
cmakeFlags = "-DDISABLE_TTF=1";
meta = {
description = "An open-source re-implementation of RollerCoaster Tycoon 2. A construction and management simulation video game that simulates amusement park management.";
homepage = "https://openrct2.website";
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.gpl3;
};
}
@AcouBass
Copy link
Author

ERROR[/tmp/nix-build-OpenRCT2-0.1.1.drv-0/OpenRCT2-46012651c531e9d5b5202b9521ced8126e30ce8f-src/src/openrct2/localisation/LanguagePack.cpp:106 (FromFile)]: Unable to open /language/en-GB.txt: Unable to open '/language/en-GB.txt'
ERROR[/tmp/nix-build-OpenRCT2-0.1.1.drv-0/OpenRCT2-46012651c531e9d5b5202b9521ced8126e30ce8f-src/src/openrct2/Context.cpp:320 (Initialise)]: Failed to open configured language...
ERROR[/tmp/nix-build-OpenRCT2-0.1.1.drv-0/OpenRCT2-46012651c531e9d5b5202b9521ced8126e30ce8f-src/src/openrct2/localisation/LanguagePack.cpp:106 (FromFile)]: Unable to open /language/en-GB.txt: Unable to open '/language/en-GB.txt'
FATAL[/tmp/nix-build-OpenRCT2-0.1.1.drv-0/OpenRCT2-46012651c531e9d5b5202b9521ced8126e30ce8f-src/src/openrct2/Context.cpp:323 (Initialise)]: Failed to open fallback language...

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