forked from mirrors/nixpkgs
commit
68d0d556b9
24
pkgs/games/flare/default.nix
Normal file
24
pkgs/games/flare/default.nix
Normal 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;
|
||||
};
|
||||
}
|
24
pkgs/games/flare/engine.nix
Normal file
24
pkgs/games/flare/engine.nix
Normal 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
23
pkgs/games/flare/game.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue