2016-03-03 13:01:52 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake
|
2016-04-24 15:33:11 +02:00
|
|
|
, mesa_noglu, SDL, SDL_image, SDL_ttf, glew, openalSoft
|
2016-04-23 00:34:11 +02:00
|
|
|
, ncurses, glib, gtk2, libsndfile, zlib
|
2016-01-12 18:56:59 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-04-23 00:34:11 +02:00
|
|
|
name = "dwarf_fortress_unfuck-2016-04-22";
|
2016-01-12 18:56:59 +01:00
|
|
|
|
2016-03-03 13:01:52 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "svenstaro";
|
|
|
|
repo = "dwarf_fortress_unfuck";
|
2016-04-23 00:34:11 +02:00
|
|
|
rev = "dde40a2c619eac119b6db1bcd0c8d8612472f866";
|
|
|
|
sha256 = "12bqh3k4wsk1c0bz2zly8h0ilbsdmsbwr9cdjc6i7liwg9906g7i";
|
2016-01-12 18:56:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2016-04-14 03:11:58 +02:00
|
|
|
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
|
|
|
|
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
|
2016-01-12 18:56:59 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
2016-04-24 15:33:11 +02:00
|
|
|
SDL SDL_image SDL_ttf glew openalSoft
|
|
|
|
ncurses gtk2 libsndfile zlib mesa_noglu
|
2016-01-12 18:56:59 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D -m755 ../build/libgraphics.so $out/lib/libgraphics.so
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-03-03 13:01:52 +01:00
|
|
|
passthru.dfVersion = "0.42.06";
|
2016-01-12 18:56:59 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Unfucked multimedia layer for Dwarf Fortress";
|
|
|
|
homepage = https://github.com/svenstaro/dwarf_fortress_unfuck;
|
|
|
|
license = licenses.free;
|
|
|
|
platforms = [ "i686-linux" ];
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|