Skip to content

Instantly share code, notes, and snippets.

@Zitrax
Last active October 14, 2017 20:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Zitrax/4b769508a3d4b7386f77c7dfa401b204 to your computer and use it in GitHub Desktop.
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