mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 20:02:14 +03:00
flare: add darwin support
This commit is contained in:
parent
14e3ee4860
commit
3c1458c065
@ -1,10 +1,10 @@
|
||||
{ lib, buildEnv, callPackage, makeWrapper }:
|
||||
{ lib, buildEnv, callPackage, makeWrapper, Cocoa }:
|
||||
|
||||
buildEnv {
|
||||
name = "flare-1.11";
|
||||
|
||||
paths = [
|
||||
(callPackage ./engine.nix {})
|
||||
(callPackage ./engine.nix { inherit Cocoa; })
|
||||
(callPackage ./game.nix {})
|
||||
];
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf }:
|
||||
{ stdenv, fetchFromGitHub, cmake, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, Cocoa }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "flare-engine";
|
||||
@ -12,7 +12,8 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf ];
|
||||
buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin Cocoa;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Free/Libre Action Roleplaying Engine";
|
||||
|
@ -2997,7 +2997,9 @@ in
|
||||
|
||||
flannel = callPackage ../tools/networking/flannel { };
|
||||
|
||||
flare = callPackage ../games/flare { };
|
||||
flare = callPackage ../games/flare {
|
||||
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
||||
};
|
||||
|
||||
flashbench = callPackage ../os-specific/linux/flashbench { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user