2016-03-03 12:01:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake
|
2016-08-22 04:43:12 +00:00
|
|
|
, mesa_noglu, libSM, SDL, SDL_image, SDL_ttf, glew, openalSoft
|
2016-04-22 22:34:11 +00:00
|
|
|
, ncurses, glib, gtk2, libsndfile, zlib
|
2016-01-12 17:56:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-08-13 00:11:45 +00:00
|
|
|
name = "dwarf_fortress_unfuck-2016-07-13";
|
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-08-13 00:11:45 +00:00
|
|
|
rev = "d6a4ee67e7b41bec1caa87548640643db35a6080";
|
|
|
|
sha256 = "17p7jzmwd5z54wn6bxmic0i8y8mma3q359zcy3r9x2mp2wv1yd7p";
|
2016-01-12 17:56:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2016-04-14 01:11:58 +00: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 = [
|
2016-08-22 04:43:12 +00:00
|
|
|
libSM SDL SDL_image SDL_ttf glew openalSoft
|
2016-04-24 13:33:11 +00:00
|
|
|
ncurses gtk2 libsndfile zlib mesa_noglu
|
2016-01-12 17:56:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D -m755 ../build/libgraphics.so $out/lib/libgraphics.so
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-11-23 23:51:51 +00:00
|
|
|
# Breaks dfhack because of inlining.
|
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
|
2016-08-13 00:11:45 +00:00
|
|
|
passthru.dfVersion = "0.43.05";
|
2016-01-12 17:56:59 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Unfucked multimedia layer for Dwarf Fortress";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://github.com/svenstaro/dwarf_fortress_unfuck;
|
2016-01-12 17:56:59 +00:00
|
|
|
license = licenses.free;
|
2016-08-13 00:11:45 +00:00
|
|
|
platforms = platforms.linux;
|
2016-01-12 17:56:59 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|