2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchurl, fetchpatch
|
2021-01-17 05:49:22 +00:00
|
|
|
, curl, ed, pkg-config, freetype, zlib, libX11
|
2019-05-04 22:52:01 +00:00
|
|
|
, SDL2, SDL2_image, SDL2_mixer
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "redeclipse";
|
2020-02-05 08:56:03 +00:00
|
|
|
version = "2.0.0";
|
2019-05-04 22:52:01 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-10-22 15:31:19 +00:00
|
|
|
url = "https://github.com/redeclipse/base/releases/download/v${version}/redeclipse_${version}_nix.tar.bz2";
|
2020-02-05 08:56:03 +00:00
|
|
|
sha256 = "143i713ggbk607qr4n39pi0pn8d93x9x6fcbh8rc51jb9qhi8p5i";
|
2019-05-04 22:52:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-02-05 08:56:03 +00:00
|
|
|
libX11 freetype zlib
|
2019-05-04 22:52:01 +00:00
|
|
|
SDL2 SDL2_image SDL2_mixer
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 05:49:22 +00:00
|
|
|
curl ed pkg-config
|
2019-05-04 22:52:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [ "-C" "src/" "prefix=$(out)" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installTargets = [ "system-install" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp -R -t $out/share/redeclipse/data/ data/*
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "A first person arena shooter, featuring parkour, impulse boosts, and more";
|
2019-05-04 22:52:01 +00:00
|
|
|
longDescription = ''
|
|
|
|
Red Eclipse is a fun-filled new take on the first person arena shooter,
|
|
|
|
featuring parkour, impulse boosts, and more. The development is geared
|
|
|
|
toward balanced gameplay, with a general theme of agility in a variety of
|
|
|
|
environments.
|
|
|
|
'';
|
2019-07-03 03:31:38 +00:00
|
|
|
homepage = "https://www.redeclipse.net";
|
2020-03-13 09:27:29 +00:00
|
|
|
license = with licenses; [ licenses.zlib cc-by-sa-30 ];
|
2019-07-03 03:31:38 +00:00
|
|
|
maintainers = with maintainers; [ lambda-11235 ];
|
|
|
|
platforms = platforms.linux;
|
2019-05-04 22:52:01 +00:00
|
|
|
hydraPlatforms = [];
|
|
|
|
};
|
|
|
|
}
|