summary refs log tree commit diff
path: root/pkgs/games/redeclipse
diff options
context:
space:
mode:
authorTaran Lynn <taranlynn0@gmail.com>2019-05-04 15:52:01 -0700
committerLassulus <github@lassul.us>2019-07-02 18:16:55 +0200
commite706a83f0d2d2fbdcde4d22f28d0e8f874ea39f3 (patch)
tree4f870dae558b5fc806d78731ddc1facfdfd01533 /pkgs/games/redeclipse
parent096a2998f1876da8a5e3e7241cc84a50904250d2 (diff)
downloadnixpkgs-e706a83f0d2d2fbdcde4d22f28d0e8f874ea39f3.tar
nixpkgs-e706a83f0d2d2fbdcde4d22f28d0e8f874ea39f3.tar.gz
nixpkgs-e706a83f0d2d2fbdcde4d22f28d0e8f874ea39f3.tar.bz2
nixpkgs-e706a83f0d2d2fbdcde4d22f28d0e8f874ea39f3.tar.lz
nixpkgs-e706a83f0d2d2fbdcde4d22f28d0e8f874ea39f3.tar.xz
nixpkgs-e706a83f0d2d2fbdcde4d22f28d0e8f874ea39f3.tar.zst
nixpkgs-e706a83f0d2d2fbdcde4d22f28d0e8f874ea39f3.zip
redeclipse: init at 1.6.0.
See www.redeclipse.net for information.
Diffstat (limited to 'pkgs/games/redeclipse')
-rw-r--r--pkgs/games/redeclipse/default.nix57
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/games/redeclipse/default.nix b/pkgs/games/redeclipse/default.nix
new file mode 100644
index 00000000000..2825c184bc5
--- /dev/null
+++ b/pkgs/games/redeclipse/default.nix
@@ -0,0 +1,57 @@
+{ stdenv, fetchFromGitHub, fetchurl, fetchpatch
+, curl, ed, pkgconfig, zlib, libX11
+, SDL2, SDL2_image, SDL2_mixer
+}:
+
+stdenv.mkDerivation rec {
+  pname = "redeclipse";
+  version = "1.6.0";
+
+  src = fetchurl {
+    url = "https://github.com/red-eclipse/base/releases/download/v${version}/redeclipse_${version}_nix.tar.bz2";
+    sha256 = "0j98zk7nivdsap4y50dlqnql17hdila1ikvps6vicwaqb3l4gaa8";
+  };
+
+  buildInputs = [
+    libX11 zlib
+    SDL2 SDL2_image SDL2_mixer
+  ];
+
+  nativeBuildInputs = [
+    curl ed pkgconfig
+  ];
+
+  makeFlags = [ "-C" "src/" "prefix=$(out)" ];
+
+  patches = [
+    # "remove gamma name hack" - Can't find `____gammaf128_r_finite` otherwise
+    # Is likely to be included in next release
+    (fetchpatch {
+       url = "https://github.com/red-eclipse/base/commit/b16b4963c1ad81bb9ef784bc4913a4c8ab5f1bb4.diff";
+       sha256 = "1bm07qrq60bbmbf5k9255qq115mcyfphfy2f7xl1yx40mb9ns65p";
+    })
+  ];
+
+  enableParallelBuilding = true;
+
+  installTargets = [ "system-install" ];
+
+  postInstall = ''
+      cp -R -t $out/share/redeclipse/data/ data/*
+  '';
+
+  meta = {
+    description = "A first person arena shooter, featuring parkour, impulse boosts, and more.";
+    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.
+    '';
+    homepage = https://www.redeclipse.net;
+    license = with stdenv.lib.licenses; [ zlib cc-by-sa-30 ];
+    maintainers = with stdenv.lib.maintainers; [ lambda-11235 ];
+    platforms = stdenv.lib.platforms.linux;
+    hydraPlatforms = [];
+  };
+}