2023-09-03 23:10:57 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, sfml, libX11, glew, python3, fetchpatch, applyPatches, glm, meshoptimizer, SDL2, ninja}:
|
2018-04-27 01:22:35 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2023-09-03 23:10:57 +02:00
|
|
|
major = "2023";
|
2021-07-09 14:42:43 +02:00
|
|
|
minor = "06";
|
2023-09-03 23:10:57 +02:00
|
|
|
patch.seriousproton = "17";
|
|
|
|
patch.emptyepsilon = "17";
|
2018-10-01 09:09:28 +02:00
|
|
|
|
2021-03-31 15:33:16 +02:00
|
|
|
version.seriousproton = "${major}.${minor}.${patch.seriousproton}";
|
|
|
|
version.emptyepsilon = "${major}.${minor}.${patch.emptyepsilon}";
|
2023-09-03 23:10:57 +02:00
|
|
|
version.basis-universal = "v1_15_update2";
|
|
|
|
|
|
|
|
basis-universal = fetchFromGitHub {
|
|
|
|
owner = "BinomialLLC";
|
|
|
|
repo = "basis_universal";
|
|
|
|
rev = version.basis-universal;
|
|
|
|
sha256 = "sha256-2snzq/SnhWHIgSbUUgh24B6tka7EfkGO+nwKEObRkU4=";
|
|
|
|
};
|
2018-04-27 01:22:35 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
serious-proton = stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "serious-proton";
|
2021-03-31 15:33:16 +02:00
|
|
|
version = version.seriousproton;
|
2018-04-27 01:22:35 +02:00
|
|
|
|
2023-09-03 23:10:57 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "daid";
|
|
|
|
repo = "SeriousProton";
|
|
|
|
rev = "EE-${version.seriousproton}";
|
|
|
|
sha256 = "sha256-5ifYb5dX8ihQmJB1RHyzMsZJeXZ+m27JmA+W+XA/XwI=";
|
2018-04-27 01:22:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2023-09-03 23:10:57 +02:00
|
|
|
buildInputs = [ sfml libX11 glm SDL2 ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DFETCHCONTENT_SOURCE_DIR_BASIS=${basis-universal}"
|
|
|
|
];
|
2018-04-27 01:22:35 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "C++ game engine coded on top of SFML used for EmptyEpsilon";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/daid/SeriousProton";
|
2018-04-27 01:22:35 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "empty-epsilon";
|
2021-03-31 15:33:16 +02:00
|
|
|
version = version.emptyepsilon;
|
2018-04-27 01:22:35 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "daid";
|
|
|
|
repo = "EmptyEpsilon";
|
2021-03-31 15:33:16 +02:00
|
|
|
rev = "EE-${version.emptyepsilon}";
|
2023-09-03 23:10:57 +02:00
|
|
|
sha256 = "sha256-zuXbCBlv6URndbB0aA+3bli0cSeUBf3LT/7/jcPITnc=";
|
2018-04-27 01:22:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2023-09-03 23:10:57 +02:00
|
|
|
buildInputs = [ serious-proton sfml glew libX11 python3 glm SDL2 ninja ];
|
2018-04-27 01:22:35 +02:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DSERIOUS_PROTON_DIR=${serious-proton.src}"
|
2021-03-31 15:33:16 +02:00
|
|
|
"-DCPACK_PACKAGE_VERSION=${version.emptyepsilon}"
|
2018-10-01 09:09:28 +02:00
|
|
|
"-DCPACK_PACKAGE_VERSION_MAJOR=${major}"
|
|
|
|
"-DCPACK_PACKAGE_VERSION_MINOR=${minor}"
|
2021-03-31 15:33:16 +02:00
|
|
|
"-DCPACK_PACKAGE_VERSION_PATCH=${patch.emptyepsilon}"
|
2023-09-03 23:10:57 +02:00
|
|
|
"-DFETCHCONTENT_SOURCE_DIR_BASIS=${basis-universal}"
|
|
|
|
"-DFETCHCONTENT_SOURCE_DIR_MESHOPTIMIZER=${meshoptimizer.src}"
|
|
|
|
"-DCMAKE_AR=${stdenv.cc.cc}/bin/gcc-ar"
|
|
|
|
"-DCMAKE_RANLIB=${stdenv.cc.cc}/bin/gcc-ranlib"
|
|
|
|
"-G Ninja"
|
2018-04-27 01:22:35 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Open source bridge simulator based on Artemis";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "EmptyEpsilon";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://daid.github.io/EmptyEpsilon/";
|
2018-04-27 01:22:35 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2020-03-12 21:05:43 +01:00
|
|
|
maintainers = with maintainers; [ fpletz lheckemann ma27 ];
|
2018-04-27 01:22:35 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|