From 14e3ee4860be2d1828501ceb60cc5ac1102a3399 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Sat, 3 Aug 2019 07:11:47 -0400 Subject: [PATCH 1/2] flare: 1.10 -> 1.11 --- pkgs/games/flare/default.nix | 2 +- pkgs/games/flare/engine.nix | 4 ++-- pkgs/games/flare/game.nix | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/games/flare/default.nix b/pkgs/games/flare/default.nix index 5ae656d1fc18..28d8a17638a9 100644 --- a/pkgs/games/flare/default.nix +++ b/pkgs/games/flare/default.nix @@ -1,7 +1,7 @@ { lib, buildEnv, callPackage, makeWrapper }: buildEnv { - name = "flare-1.10"; + name = "flare-1.11"; paths = [ (callPackage ./engine.nix {}) diff --git a/pkgs/games/flare/engine.nix b/pkgs/games/flare/engine.nix index 8b620835f857..526951921dba 100644 --- a/pkgs/games/flare/engine.nix +++ b/pkgs/games/flare/engine.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "flare-engine"; - version = "1.10"; + version = "1.11"; src = fetchFromGitHub { owner = "flareteam"; repo = pname; rev = "v${version}"; - sha256 = "0fm7jmxl86h8199nazdi9ivsrhcv9gcymhz1l5c6l2f4d0aqdqiq"; + sha256 = "1j6raymz128miq517h9drks4gj79dajw3lsr0msqxz0z3zm6cc4n"; }; nativeBuildInputs = [ cmake ]; diff --git a/pkgs/games/flare/game.nix b/pkgs/games/flare/game.nix index b10d7dfedb0f..6a231a5ff7d7 100644 --- a/pkgs/games/flare/game.nix +++ b/pkgs/games/flare/game.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "flare-game"; - version = "1.10"; + version = "1.11"; src = fetchFromGitHub { owner = "flareteam"; repo = pname; rev = "v${version}"; - sha256 = "1lfra4ww8za08vcgza2jvh3jrwi6zryk4ljyj32lpp9v4ws9hdh4"; + sha256 = "18m2qfbbaqklm20gnr7wzrwbmylp1jh781a4p1dq0hymqcg92x5l"; }; nativeBuildInputs = [ cmake ]; From 3c1458c065c2fd94021b24b1cc2ad2308eb1fd7f Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Sat, 3 Aug 2019 08:12:24 -0400 Subject: [PATCH 2/2] flare: add darwin support --- pkgs/games/flare/default.nix | 4 ++-- pkgs/games/flare/engine.nix | 5 +++-- pkgs/top-level/all-packages.nix | 4 +++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/games/flare/default.nix b/pkgs/games/flare/default.nix index 28d8a17638a9..551276b1b25d 100644 --- a/pkgs/games/flare/default.nix +++ b/pkgs/games/flare/default.nix @@ -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 {}) ]; diff --git a/pkgs/games/flare/engine.nix b/pkgs/games/flare/engine.nix index 526951921dba..74f983c64413 100644 --- a/pkgs/games/flare/engine.nix +++ b/pkgs/games/flare/engine.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"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1d4295586fa2..1b9e3dad000c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };