tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
openloco: init at 23.02
Robin Appelman
2 years ago
d6942e22
0f74c643
+59
2 changed files
expand all
collapse all
unified
split
pkgs
games
openloco
default.nix
top-level
all-packages.nix
+57
pkgs/games/openloco/default.nix
···
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitHub
4
4
+
, SDL2
5
5
+
, cmake
6
6
+
, libpng
7
7
+
, libzip
8
8
+
, openal
9
9
+
, pkg-config
10
10
+
, span-lite
11
11
+
, yaml-cpp
12
12
+
}:
13
13
+
14
14
+
stdenv.mkDerivation rec {
15
15
+
pname = "openloco";
16
16
+
version = "23.02";
17
17
+
18
18
+
src = fetchFromGitHub {
19
19
+
owner = "OpenLoco";
20
20
+
repo = "OpenLoco";
21
21
+
rev = "v${version}";
22
22
+
hash = "sha256-35g7tnKez4tnTdZzavfU+X8f3btFG6EbLkU+cqL6Qek=";
23
23
+
};
24
24
+
25
25
+
# the upstream build process determines the version tag from git; since we
26
26
+
# are not using a git checkout, we patch it manually
27
27
+
postPatch = ''
28
28
+
sed -i '/#define NAME "OpenLoco"/a#define OPENLOCO_VERSION_TAG "${version}"' src/OpenLoco/src/Version.cpp
29
29
+
'';
30
30
+
31
31
+
NIX_CFLAGS_COMPILE = "-Wno-error=null-dereference";
32
32
+
33
33
+
cmakeFlags = [
34
34
+
"-DOPENLOCO_BUILD_TESTS=NO"
35
35
+
];
36
36
+
37
37
+
nativeBuildInputs = [
38
38
+
cmake
39
39
+
pkg-config
40
40
+
];
41
41
+
buildInputs = [
42
42
+
SDL2
43
43
+
libpng
44
44
+
libzip
45
45
+
openal
46
46
+
yaml-cpp
47
47
+
span-lite
48
48
+
];
49
49
+
50
50
+
meta = {
51
51
+
description = "An open source re-implementation of Chris Sawyer's Locomotion";
52
52
+
homepage = "https://github.com/OpenLoco/OpenLoco";
53
53
+
license = lib.licenses.mit;
54
54
+
platforms = lib.platforms.linux;
55
55
+
maintainers = with lib.maintainers; [ icewind1991 ];
56
56
+
};
57
57
+
}
+2
pkgs/top-level/all-packages.nix
···
35545
35545
35546
35546
openjk = callPackage ../games/openjk { };
35547
35547
35548
35548
+
openloco = pkgsi686Linux.callPackage ../games/openloco { };
35549
35549
+
35548
35550
openmw = libsForQt5.callPackage ../games/openmw { };
35549
35551
35550
35552
openmw-tes3mp = libsForQt5.callPackage ../games/openmw/tes3mp.nix { };