1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/games/empty-epsilon/default.nix

67 lines
1.6 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
2019-01-25 23:27:40 +00:00
major = "2019";
2019-08-02 09:14:52 +01:00
minor = "05";
patch = "21";
version = "${major}.${minor}.${patch}";
2018-04-27 00:22:35 +01:00
serious-proton = stdenv.mkDerivation rec {
pname = "serious-proton";
2018-04-27 00:22:35 +01:00
inherit version;
src = fetchFromGitHub {
owner = "daid";
repo = "SeriousProton";
rev = "EE-${version}";
2019-08-02 09:14:52 +01:00
sha256 = "0q6in9rfs3b3qrfj2j6aj64z110k1yall4iqpp68rpp9r1dsh26p";
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 {
pname = "empty-epsilon";
2018-04-27 00:22:35 +01:00
inherit version;
src = fetchFromGitHub {
owner = "daid";
repo = "EmptyEpsilon";
rev = "EE-${version}";
2019-08-02 09:14:52 +01:00
sha256 = "0v2xz1wlji6m6311r3vpkdil3a7l1w5nsz5yqd1l8bimy11rdr55";
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}"
"-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 lheckemann ];
2018-04-27 00:22:35 +01:00
platforms = platforms.linux;
};
}