3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/empty-epsilon/default.nix

69 lines
1.9 KiB
Nix
Raw Normal View History

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
major = "2021";
minor = "03";
patch.seriousproton = "30";
patch.emptyepsilon = "31";
version.seriousproton = "${major}.${minor}.${patch.seriousproton}";
version.emptyepsilon = "${major}.${minor}.${patch.emptyepsilon}";
2018-04-27 00:22:35 +01:00
2019-08-13 22:52:01 +01:00
serious-proton = stdenv.mkDerivation {
pname = "serious-proton";
version = version.seriousproton;
2018-04-27 00:22:35 +01:00
src = fetchFromGitHub {
owner = "daid";
repo = "SeriousProton";
rev = "EE-${version.seriousproton}";
sha256 = "sha256-wxb/CxJ/HKsVngeahjygZFPMMxitkHdVD0EQ3svxgIU=";
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";
2018-04-27 00:22:35 +01:00
license = licenses.mit;
maintainers = with maintainers; [ fpletz ];
platforms = platforms.linux;
};
};
in
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "empty-epsilon";
version = version.emptyepsilon;
2018-04-27 00:22:35 +01:00
src = fetchFromGitHub {
owner = "daid";
repo = "EmptyEpsilon";
rev = "EE-${version.emptyepsilon}";
sha256 = "sha256-x0XJPMU0prubTb4ti/W/dH5P9abNwbjqkeUhKQpct9o=";
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}"
"-DCPACK_PACKAGE_VERSION=${version.emptyepsilon}"
"-DCPACK_PACKAGE_VERSION_MAJOR=${major}"
"-DCPACK_PACKAGE_VERSION_MINOR=${minor}"
"-DCPACK_PACKAGE_VERSION_PATCH=${patch.emptyepsilon}"
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/";
2018-04-27 00:22:35 +01:00
license = licenses.gpl2Plus;
2020-03-12 20:05:43 +00:00
maintainers = with maintainers; [ fpletz lheckemann ma27 ];
2018-04-27 00:22:35 +01:00
platforms = platforms.linux;
};
}