hawkthorne: Initial commit, license issue still unresolved

authored by Philip Horger and committed by Mateusz Kowalczyk 3da42c81 fc83dfbc

+73
+38
pkgs/games/hawkthorne/default.nix
··· 1 + { fetchgit, stdenv, love, curl, zip }: 2 + 3 + stdenv.mkDerivation rec { 4 + version = "0.9.1"; 5 + name = "hawkthorne-${version}"; 6 + 7 + src = fetchgit { 8 + url = "https://github.com/hawkthorne/hawkthorne-journey.git"; 9 + rev = "e48b5eef0058f63bb8ee746bc00b47b3e03f0854"; 10 + sha256 = "0rvcpv8fsi450xs2cglv4w6m5iqbhsr2n09pcvhh0krhg7xay538"; 11 + }; 12 + 13 + buildInputs = [ 14 + love curl zip 15 + ]; 16 + 17 + patches = [ 18 + ./makefile.patch 19 + ]; 20 + 21 + enableParallelBuilding = true; 22 + 23 + meta = { 24 + description = "Journey to the Center of Hawkthorne - A fan-made retro-style game based on the show Community"; 25 + longDescription = '' 26 + Journey to the Center of Hawkthorne is an open source game written in Love2D. 27 + It's based on the show Community, starring Jim Rash and Joel McHale as 28 + the primary will-they-or-won't-they relationship. 29 + 30 + This game has been entirely developed by fans of the show, who were inspired 31 + to bring to life the video game used to determine the winner of Pierce 32 + Hawthorne's inheritance. 33 + ''; 34 + homepage = "http://www.reddit.com/r/hawkthorne"; 35 + license = stdenv.lib.licenses.mit; 36 + maintainers = with stdenv.lib.maintainers; [ campadrenalin ]; 37 + }; 38 + }
+33
pkgs/games/hawkthorne/makefile.patch
··· 1 + diff --git a/Makefile b/Makefile 2 + index 55eb817..f3406aa 100644 3 + --- a/Makefile 4 + +++ b/Makefile 5 + @@ -18,10 +18,14 @@ endif 6 + 7 + tilemaps := $(patsubst %.tmx,%.lua,$(wildcard src/maps/*.tmx)) 8 + 9 + -maps: $(tilemaps) 10 + - 11 + love: build/hawkthorne.love 12 + 13 + +shebang: build/hawkthorne.love 14 + + cat <(echo '#!/usr/bin/env love') build/hawkthorne.love > build/hawkthorne 15 + + chmod +x build/hawkthorne 16 + + 17 + +maps: $(tilemaps) 18 + + 19 + build/hawkthorne.love: $(tilemaps) src/* 20 + mkdir -p build 21 + cd src && zip --symlinks -q -r ../build/hawkthorne.love . -x ".*" \ 22 + @@ -30,6 +34,12 @@ build/hawkthorne.love: $(tilemaps) src/* 23 + run: $(tilemaps) $(LOVE) 24 + $(LOVE) src 25 + 26 + +check: test 27 + + 28 + +install: shebang 29 + + mkdir -p $(out)/bin 30 + + cp build/hawkthorne $(out)/bin 31 + + 32 + src/maps/%.lua: src/maps/%.tmx bin/tmx2lua 33 + bin/tmx2lua $<
+2
pkgs/top-level/all-packages.nix
··· 1278 1278 1279 1279 haveged = callPackage ../tools/security/haveged { }; 1280 1280 1281 + hawkthorne = callPackage ../games/hawkthorne { love = love_0_9; }; 1282 + 1281 1283 hardlink = callPackage ../tools/system/hardlink { }; 1282 1284 1283 1285 hashcat = callPackage ../tools/security/hashcat { };