mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
381e8d16a9
ChangeLog: * https://github.com/daid/EmptyEpsilon/releases/tag/EE-2021.03.16 * https://github.com/daid/EmptyEpsilon/releases/tag/EE-2021.03.31
69 lines
1.9 KiB
Nix
69 lines
1.9 KiB
Nix
{ lib, stdenv, fetchFromGitHub, cmake, sfml, libX11, glew, python3 }:
|
|
|
|
let
|
|
|
|
major = "2021";
|
|
minor = "03";
|
|
patch.seriousproton = "30";
|
|
patch.emptyepsilon = "31";
|
|
|
|
version.seriousproton = "${major}.${minor}.${patch.seriousproton}";
|
|
version.emptyepsilon = "${major}.${minor}.${patch.emptyepsilon}";
|
|
|
|
serious-proton = stdenv.mkDerivation {
|
|
pname = "serious-proton";
|
|
version = version.seriousproton;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "daid";
|
|
repo = "SeriousProton";
|
|
rev = "EE-${version.seriousproton}";
|
|
sha256 = "sha256-wxb/CxJ/HKsVngeahjygZFPMMxitkHdVD0EQ3svxgIU=";
|
|
};
|
|
|
|
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 {
|
|
pname = "empty-epsilon";
|
|
version = version.emptyepsilon;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "daid";
|
|
repo = "EmptyEpsilon";
|
|
rev = "EE-${version.emptyepsilon}";
|
|
sha256 = "sha256-x0XJPMU0prubTb4ti/W/dH5P9abNwbjqkeUhKQpct9o=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ serious-proton sfml glew libX11 python3 ];
|
|
|
|
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}"
|
|
];
|
|
|
|
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 ma27 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|