2024-07-27 06:49:29 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, sfml, libX11, glew, python3, glm, meshoptimizer, SDL2, ninja }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2024-07-27 06:49:29 +00:00
|
|
|
version = {
|
|
|
|
seriousproton = "2024.06.20";
|
|
|
|
emptyepsilon = "2024.06.20";
|
|
|
|
basis-universal = "v1_15_update2";
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
basis-universal = fetchFromGitHub {
|
|
|
|
owner = "BinomialLLC";
|
|
|
|
repo = "basis_universal";
|
|
|
|
rev = version.basis-universal;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-2snzq/SnhWHIgSbUUgh24B6tka7EfkGO+nwKEObRkU4=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
serious-proton = stdenv.mkDerivation {
|
|
|
|
pname = "serious-proton";
|
2021-04-05 15:23:46 +00:00
|
|
|
version = version.seriousproton;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "daid";
|
|
|
|
repo = "SeriousProton";
|
|
|
|
rev = "EE-${version.seriousproton}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-byLk4ukpj+s74+3K+1wzRTXhe4pKkH0pOSYeVs94muc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2023-10-09 19:29:22 +00:00
|
|
|
buildInputs = [ sfml libX11 glm SDL2 ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2024-07-27 06:49:29 +00:00
|
|
|
(lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_BASIS" "${basis-universal}")
|
|
|
|
(lib.cmakeFeature "CMAKE_CXX_FLAGS" "-DGLM_ENABLE_EXPERIMENTAL")
|
2023-10-09 19:29:22 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
2021-04-05 15:23:46 +00:00
|
|
|
version = version.emptyepsilon;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "daid";
|
|
|
|
repo = "EmptyEpsilon";
|
2021-04-05 15:23:46 +00:00
|
|
|
rev = "EE-${version.emptyepsilon}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-YTZliu1o3LFab43DqmSk/cifxRWZMPxdV4gNoNy8LEk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2023-10-09 19:29:22 +00:00
|
|
|
buildInputs = [ serious-proton sfml glew libX11 python3 glm SDL2 ninja ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
2024-07-27 06:49:29 +00:00
|
|
|
(lib.cmakeFeature "SERIOUS_PROTON_DIR" "${serious-proton.src}")
|
|
|
|
(lib.cmakeFeature "CPACK_PACKAGE_VERSION" "${version.emptyepsilon}")
|
|
|
|
(lib.cmakeFeature "CPACK_PACKAGE_VERSION_MAJOR" "${lib.versions.major version.emptyepsilon}")
|
|
|
|
(lib.cmakeFeature "CPACK_PACKAGE_VERSION_MINOR" "${lib.versions.minor version.emptyepsilon}")
|
|
|
|
(lib.cmakeFeature "CPACK_PACKAGE_VERSION_PATCH" "${lib.versions.patch version.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")
|
2023-10-09 19:29:22 +00:00
|
|
|
"-G Ninja"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Open source bridge simulator based on Artemis";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "EmptyEpsilon";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://daid.github.io/EmptyEpsilon/";
|
|
|
|
license = licenses.gpl2Plus;
|
2024-06-24 18:47:55 +00:00
|
|
|
maintainers = with maintainers; [ fpletz ma27 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|