mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 06:05:13 +00:00
67 lines
1.7 KiB
Nix
67 lines
1.7 KiB
Nix
{ lib, stdenv, fetchFromGitHub, cmake, sfml, libX11, glew, python3 }:
|
|
|
|
let
|
|
|
|
major = "2019";
|
|
minor = "01";
|
|
patch = "19";
|
|
|
|
version = "${major}.${minor}.${patch}";
|
|
|
|
serious-proton = stdenv.mkDerivation rec {
|
|
name = "serious-proton-${version}";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "daid";
|
|
repo = "SeriousProton";
|
|
rev = "EE-${version}";
|
|
sha256 = "1a5g16vvjrykmdgy5fc8x0v4ipfm0qdaimmy5jz84am14dqi3f8w";
|
|
};
|
|
|
|
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}";
|
|
sha256 = "082v27w3n4jdm4a5884607rwsw4s00cnpqmh7bsdg9q3l29jpygn";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ serious-proton sfml glew libX11 python3 ];
|
|
|
|
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}"
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|