Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, Cocoa }: 2 3stdenv.mkDerivation rec { 4 pname = "flare-engine"; 5 version = "1.14"; 6 7 src = fetchFromGitHub { 8 owner = "flareteam"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-DIzfTqwZJ8NAPB/TWzvPjepHb7hIbIr+Kk+doXJmpLc="; 12 }; 13 14 patches = [ ./desktop.patch ]; 15 16 nativeBuildInputs = [ cmake ]; 17 buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf ] 18 ++ lib.optional stdenv.isDarwin Cocoa; 19 20 meta = with lib; { 21 description = "Free/Libre Action Roleplaying Engine"; 22 homepage = "https://github.com/flareteam/flare-engine"; 23 maintainers = with maintainers; [ aanderse McSinyx ]; 24 license = [ licenses.gpl3 ]; 25 platforms = platforms.unix; 26 }; 27}