2016-03-03 12:01:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake
|
2016-01-12 17:56:59 +00:00
|
|
|
, mesa, SDL, SDL_image, SDL_ttf, glew, openalSoft
|
2016-04-22 23:34:11 +01:00
|
|
|
, ncurses, glib, gtk2, libsndfile, zlib
|
2016-01-12 17:56:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-04-22 23:34:11 +01:00
|
|
|
name = "dwarf_fortress_unfuck-2016-04-22";
|
2016-01-12 17:56:59 +00:00
|
|
|
|
2016-03-03 12:01:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "svenstaro";
|
|
|
|
repo = "dwarf_fortress_unfuck";
|
2016-04-22 23:34:11 +01:00
|
|
|
rev = "dde40a2c619eac119b6db1bcd0c8d8612472f866";
|
|
|
|
sha256 = "12bqh3k4wsk1c0bz2zly8h0ilbsdmsbwr9cdjc6i7liwg9906g7i";
|
2016-01-12 17:56:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2016-04-14 02:11:58 +01: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 17:56:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
|
|
mesa SDL SDL_image SDL_ttf glew openalSoft
|
2016-04-22 23:34:11 +01:00
|
|
|
ncurses gtk2 libsndfile zlib
|
2016-01-12 17:56:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D -m755 ../build/libgraphics.so $out/lib/libgraphics.so
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-03-03 12:01:52 +00:00
|
|
|
passthru.dfVersion = "0.42.06";
|
2016-01-12 17:56:59 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|