2018-08-03 14:56:46 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, sfml, libX11, glew, python3 }:
|
2018-04-26 23:22:35 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2020-01-24 13:16:15 +00:00
|
|
|
major = "2020";
|
2020-11-23 14:55:04 +00:00
|
|
|
minor = "11";
|
|
|
|
patch = "23";
|
2018-10-01 07:09:28 +00:00
|
|
|
|
|
|
|
version = "${major}.${minor}.${patch}";
|
2018-04-26 23:22:35 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
serious-proton = stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "serious-proton";
|
2018-04-26 23:22:35 +00:00
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "daid";
|
|
|
|
repo = "SeriousProton";
|
|
|
|
rev = "EE-${version}";
|
2020-11-23 14:55:04 +00:00
|
|
|
sha256 = "sha256-/gwJPlvvOCv5XIsiVgZ8Eb/7vgwG/V+s/soGVCfYrwo=";
|
2018-04-26 23:22:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ sfml libX11 ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "C++ game engine coded on top of SFML used for EmptyEpsilon";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/daid/SeriousProton";
|
2018-04-26 23:22:35 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "empty-epsilon";
|
2018-04-26 23:22:35 +00:00
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "daid";
|
|
|
|
repo = "EmptyEpsilon";
|
|
|
|
rev = "EE-${version}";
|
2020-11-23 14:55:04 +00:00
|
|
|
sha256 = "sha256-HbF6xThR+ogNHbAcXF03DaBhwVhNEr5BJO7jeeVZH/o=";
|
2018-04-26 23:22:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-08-03 14:56:46 +00:00
|
|
|
buildInputs = [ serious-proton sfml glew libX11 python3 ];
|
2018-04-26 23:22:35 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DSERIOUS_PROTON_DIR=${serious-proton.src}"
|
2018-10-01 07:09:28 +00:00
|
|
|
"-DCPACK_PACKAGE_VERSION=${version}"
|
|
|
|
"-DCPACK_PACKAGE_VERSION_MAJOR=${major}"
|
|
|
|
"-DCPACK_PACKAGE_VERSION_MINOR=${minor}"
|
|
|
|
"-DCPACK_PACKAGE_VERSION_PATCH=${patch}"
|
2018-04-26 23:22:35 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Open source bridge simulator based on Artemis";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://daid.github.io/EmptyEpsilon/";
|
2018-04-26 23:22:35 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-03-12 20:05:43 +00:00
|
|
|
maintainers = with maintainers; [ fpletz lheckemann ma27 ];
|
2018-04-26 23:22:35 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|