14 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
22 hash = "sha256-LyA1Wl2xto05DUp3kuWEQo7Hbk8PAy990PC7bLeBFto=";
25 # the upstream build process determines the version tag from git; since we
26 # are not using a git checkout, we patch it manually
28 sed -i '/#define NAME "OpenLoco"/a#define OPENLOCO_VERSION_TAG "${version}"' src/OpenLoco/src/Version.cpp
31 NIX_CFLAGS_COMPILE = "-Wno-error=null-dereference";
34 "-DOPENLOCO_BUILD_TESTS=NO"
51 description = "Open source re-implementation of Chris Sawyer's Locomotion";
52 homepage = "https://github.com/OpenLoco/OpenLoco";
53 license = lib.licenses.mit;
54 platforms = lib.platforms.linux;
55 maintainers = with lib.maintainers; [ icewind1991 ];