3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #61706 from aanderse/flare

flare: init at 1.10
This commit is contained in:
worldofpeace 2019-05-19 18:45:13 -04:00 committed by GitHub
commit 68d0d556b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 73 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -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;
};
}

23
pkgs/games/flare/game.nix Normal file
View file

@ -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;
};
}

View file

@ -2867,6 +2867,8 @@ in
flannel = callPackage ../tools/networking/flannel { };
flare = callPackage ../games/flare { };
flashbench = callPackage ../os-specific/linux/flashbench { };
flatpak = callPackage ../development/libraries/flatpak { };