blob: 9e2d8ab4216f8933ff1df9affcfa5c14edde4fac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
{ lib, stdenv, fetchFromGitHub, cmake, sfml, libX11, glew, python3, glm, meshoptimizer, SDL2, ninja}:
let
major = "2024";
minor = "05";
patch.seriousproton = "16";
patch.emptyepsilon = "16";
version.seriousproton = "${major}.${minor}.${patch.seriousproton}";
version.emptyepsilon = "${major}.${minor}.${patch.emptyepsilon}";
version.basis-universal = "v1_15_update2";
basis-universal = fetchFromGitHub {
owner = "BinomialLLC";
repo = "basis_universal";
rev = version.basis-universal;
sha256 = "sha256-2snzq/SnhWHIgSbUUgh24B6tka7EfkGO+nwKEObRkU4=";
};
serious-proton = stdenv.mkDerivation {
pname = "serious-proton";
version = version.seriousproton;
src = fetchFromGitHub {
owner = "daid";
repo = "SeriousProton";
rev = "EE-${version.seriousproton}";
sha256 = "sha256-0gCwWvx7ceJG3VmVVufRkwreuHn41pl7jHsJXzNwqaE=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ sfml libX11 glm SDL2 ];
cmakeFlags = [
(lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_BASIS" "${basis-universal}")
(lib.cmakeFeature "CMAKE_CXX_FLAGS" "-DGLM_ENABLE_EXPERIMENTAL")
];
meta = with lib; {
description = "C++ game engine coded on top of SFML used for EmptyEpsilon";
homepage = "https://github.com/daid/SeriousProton";
license = licenses.mit;
maintainers = with maintainers; [ fpletz ];
platforms = platforms.linux;
};
};
in
stdenv.mkDerivation {
pname = "empty-epsilon";
version = version.emptyepsilon;
src = fetchFromGitHub {
owner = "daid";
repo = "EmptyEpsilon";
rev = "EE-${version.emptyepsilon}";
sha256 = "sha256-pLnyzahGEPb2cEwH89RE5Jq8UHIoDWXatmDWdeZ+rqo=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ serious-proton sfml glew libX11 python3 glm SDL2 ninja ];
cmakeFlags = [
(lib.cmakeFeature "SERIOUS_PROTON_DIR" "${serious-proton.src}")
(lib.cmakeFeature "CPACK_PACKAGE_VERSION" "${version.emptyepsilon}")
(lib.cmakeFeature "CPACK_PACKAGE_VERSION_MAJOR" "${major}")
(lib.cmakeFeature "CPACK_PACKAGE_VERSION_MINOR" "${minor}")
(lib.cmakeFeature "CPACK_PACKAGE_VERSION_PATCH" "${patch.emptyepsilon}")
(lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_BASIS" "${basis-universal}")
(lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_MESHOPTIMIZER" "${meshoptimizer.src}")
(lib.cmakeFeature "CMAKE_AR" "${stdenv.cc.cc}/bin/gcc-ar")
(lib.cmakeFeature "CMAKE_RANLIB" "${stdenv.cc.cc}/bin/gcc-ranlib")
(lib.cmakeFeature "CMAKE_CXX_FLAGS" "-DGLM_ENABLE_EXPERIMENTAL")
"-G Ninja"
];
meta = with lib; {
description = "Open source bridge simulator based on Artemis";
mainProgram = "EmptyEpsilon";
homepage = "https://daid.github.io/EmptyEpsilon/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fpletz ma27 ];
platforms = platforms.linux;
};
}
|