summary refs log tree commit diff
path: root/pkgs/games/flare
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2019-05-19 08:06:24 -0400
committerAaron Andersen <aaron@fosslib.net>2019-05-19 17:59:37 -0400
commit784812cc5c2f580d21a873d3b5c450f4ec20a096 (patch)
treed1c5ec1e30ed961151b4490c20b4a2e1d6eb2272 /pkgs/games/flare
parent66c091c52c2ecd374a6ddb580b58cf7fc33a947f (diff)
downloadnixpkgs-784812cc5c2f580d21a873d3b5c450f4ec20a096.tar
nixpkgs-784812cc5c2f580d21a873d3b5c450f4ec20a096.tar.gz
nixpkgs-784812cc5c2f580d21a873d3b5c450f4ec20a096.tar.bz2
nixpkgs-784812cc5c2f580d21a873d3b5c450f4ec20a096.tar.lz
nixpkgs-784812cc5c2f580d21a873d3b5c450f4ec20a096.tar.xz
nixpkgs-784812cc5c2f580d21a873d3b5c450f4ec20a096.tar.zst
nixpkgs-784812cc5c2f580d21a873d3b5c450f4ec20a096.zip
flare: init at 1.10
Diffstat (limited to 'pkgs/games/flare')
-rw-r--r--pkgs/games/flare/default.nix24
-rw-r--r--pkgs/games/flare/engine.nix24
-rw-r--r--pkgs/games/flare/game.nix23
3 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/games/flare/default.nix b/pkgs/games/flare/default.nix
new file mode 100644
index 00000000000..5ae656d1fc1
--- /dev/null
+++ b/pkgs/games/flare/default.nix
@@ -0,0 +1,24 @@
+{ lib, buildEnv, callPackage, makeWrapper }:
+
+buildEnv {
+  name = "flare-1.10";
+
+  paths = [
+    (callPackage ./engine.nix {})
+    (callPackage ./game.nix {})
+  ];
+
+  buildInputs = [ makeWrapper ];
+  postBuild = ''
+    mkdir -p $out/bin
+    makeWrapper $out/games/flare $out/bin/flare --run "cd $out/share/games/flare"
+  '';
+
+  meta = with lib; {
+    description = "Fantasy action RPG using the FLARE engine";
+    homepage = "http://flarerpg.org/";
+    maintainers = [ maintainers.aanderse ];
+    license = [ licenses.gpl3 licenses.cc-by-sa-30 ];
+    platforms = platforms.unix;
+  };
+}
diff --git a/pkgs/games/flare/engine.nix b/pkgs/games/flare/engine.nix
new file mode 100644
index 00000000000..8b620835f85
--- /dev/null
+++ b/pkgs/games/flare/engine.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchFromGitHub, cmake, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf }:
+
+stdenv.mkDerivation rec {
+  pname = "flare-engine";
+  version = "1.10";
+
+  src = fetchFromGitHub {
+    owner = "flareteam";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0fm7jmxl86h8199nazdi9ivsrhcv9gcymhz1l5c6l2f4d0aqdqiq";
+  };
+
+  nativeBuildInputs = [ cmake ];
+  buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf ];
+
+  meta = with stdenv.lib; {
+    description = "Free/Libre Action Roleplaying Engine";
+    homepage = "https://github.com/flareteam/flare-engine";
+    maintainers = [ maintainers.aanderse ];
+    license = [ licenses.gpl3 ];
+    platforms = platforms.unix;
+  };
+}
diff --git a/pkgs/games/flare/game.nix b/pkgs/games/flare/game.nix
new file mode 100644
index 00000000000..b10d7dfedb0
--- /dev/null
+++ b/pkgs/games/flare/game.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchFromGitHub, cmake }:
+
+stdenv.mkDerivation rec {
+  pname = "flare-game";
+  version = "1.10";
+
+  src = fetchFromGitHub {
+    owner = "flareteam";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1lfra4ww8za08vcgza2jvh3jrwi6zryk4ljyj32lpp9v4ws9hdh4";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  meta = with stdenv.lib; {
+    description = "Fantasy action RPG using the FLARE engine";
+    homepage = "https://github.com/flareteam/flare-game";
+    maintainers = [ maintainers.aanderse ];
+    license = [ licenses.cc-by-sa-30 ];
+    platforms = platforms.unix;
+  };
+}