2018-08-03 15:56:46 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, sfml, libX11, glew, python3 }:
|
2018-04-27 00:22:35 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2018-10-01 08:09:28 +01:00
|
|
|
major = "2018";
|
2018-12-15 17:52:53 +00:00
|
|
|
minor = "11";
|
|
|
|
patch = "16";
|
2018-10-01 08:09:28 +01:00
|
|
|
|
|
|
|
version = "${major}.${minor}.${patch}";
|
2018-04-27 00:22:35 +01:00
|
|
|
|
|
|
|
serious-proton = stdenv.mkDerivation rec {
|
|
|
|
name = "serious-proton-${version}";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "daid";
|
|
|
|
repo = "SeriousProton";
|
|
|
|
rev = "EE-${version}";
|
2018-12-15 17:52:53 +00:00
|
|
|
sha256 = "1a5g16vvjrykmdgy5fc8x0v4ipfm0qdaimmy5jz84am14dqi3f8w";
|
2018-04-27 00:22:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ sfml libX11 ];
|
|
|
|
|
|
|
|
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 rec {
|
|
|
|
name = "empty-epsilon-${version}";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "daid";
|
|
|
|
repo = "EmptyEpsilon";
|
|
|
|
rev = "EE-${version}";
|
2018-12-15 17:52:53 +00:00
|
|
|
sha256 = "0848rxa9xwbz573b5r5qc5bpcf6pipis4gkkszfgkj1zmdhyib6b";
|
2018-04-27 00:22:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-08-03 15:56:46 +01:00
|
|
|
buildInputs = [ serious-proton sfml glew libX11 python3 ];
|
2018-04-27 00:22:35 +01:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DSERIOUS_PROTON_DIR=${serious-proton.src}"
|
2018-10-01 08:09:28 +01:00
|
|
|
"-DCPACK_PACKAGE_VERSION=${version}"
|
|
|
|
"-DCPACK_PACKAGE_VERSION_MAJOR=${major}"
|
|
|
|
"-DCPACK_PACKAGE_VERSION_MINOR=${minor}"
|
|
|
|
"-DCPACK_PACKAGE_VERSION_PATCH=${patch}"
|
2018-04-27 00:22:35 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Open source bridge simulator based on Artemis";
|
|
|
|
homepage = https://daid.github.io/EmptyEpsilon/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|