nixpkgs-suyu/pkgs/games/empty-epsilon/default.nix

67 lines
1.6 KiB
Nix
Raw Normal View History

2018-08-03 16:56:46 +02:00
{ lib, stdenv, fetchFromGitHub, cmake, sfml, libX11, glew, python3 }:
2018-04-27 01:22:35 +02:00
let
2020-01-24 14:16:15 +01:00
major = "2020";
minor = "01";
patch = "15";
version = "${major}.${minor}.${patch}";
2018-04-27 01:22:35 +02:00
2019-08-13 23:52:01 +02:00
serious-proton = stdenv.mkDerivation {
pname = "serious-proton";
2018-04-27 01:22:35 +02:00
inherit version;
src = fetchFromGitHub {
owner = "daid";
repo = "SeriousProton";
rev = "EE-${version}";
2020-01-24 14:16:15 +01:00
sha256 = "0isiy18dv22cpv7wdbvqss2afha719a7i76bvw4cs14vfsdx9s8w";
2018-04-27 01:22:35 +02: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
2019-08-13 23:52:01 +02:00
stdenv.mkDerivation {
pname = "empty-epsilon";
2018-04-27 01:22:35 +02:00
inherit version;
src = fetchFromGitHub {
owner = "daid";
repo = "EmptyEpsilon";
rev = "EE-${version}";
2020-01-24 14:16:15 +01:00
sha256 = "0jklfap9jd9ynhvwzr9q4icvx5yb4sqm457vcar4jads4pwsd0xk";
2018-04-27 01:22:35 +02:00
};
nativeBuildInputs = [ cmake ];
2018-08-03 16:56:46 +02:00
buildInputs = [ serious-proton sfml glew libX11 python3 ];
2018-04-27 01:22:35 +02:00
cmakeFlags = [
"-DSERIOUS_PROTON_DIR=${serious-proton.src}"
"-DCPACK_PACKAGE_VERSION=${version}"
"-DCPACK_PACKAGE_VERSION_MAJOR=${major}"
"-DCPACK_PACKAGE_VERSION_MINOR=${minor}"
"-DCPACK_PACKAGE_VERSION_PATCH=${patch}"
2018-04-27 01:22:35 +02: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 lheckemann ];
2018-04-27 01:22:35 +02:00
platforms = platforms.linux;
};
}