Last active
October 14, 2017 20:53
-
-
Save Zitrax/4b769508a3d4b7386f77c7dfa401b204 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
stdenv.mkDerivation { | |
name = "brainblast-1.0"; | |
src = fetchurl { | |
url = https://github.com/Zitrax/brainblast/archive/2068025f3a411000ee506f525188d586c327d226.tar.gz; | |
sha256 = "116pddal9n3bypnj3q6sggrzphzq1rfkqh5skyqfa1ha7mlspl19"; | |
}; | |
buildInputs = [ autoconf automake libtool SDL SDL_image libpng libjpeg libtiff xorg.makedepend ]; | |
# Howto add to CFLAGS? "CFLAGS+=-fdiagnostics-color" replaced it. | |
makeFlags = [ "CXX=g++" ]; | |
# Kyra do not conform to the format flags | |
hardeningDisable = [ "format" ]; | |
enableParallelBuilding = true; | |
configurePhase = let | |
libPath = lib.makeLibraryPath [ SDL_image ]; | |
in '' | |
# krencoder need the SDL_image.so so provide the path to it | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${libPath} | |
# Basically a flaw in the current Makefile. Need to run this to correct. | |
touch images/bb.h && make depend && rm images/bb.h | |
''; | |
# FIXME: Shouls also install | |
installPhase = ":"; | |
meta = { | |
description = '' | |
Puzzle game where you should try to memorize a pattern | |
and then rebuild it. Similar to Brain Blasters on Amiga. | |
''; | |
homepage = https://github.com/Zitrax/brainblast; | |
license = "GPLv2+"; | |
maintainers = [ db ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment