2016-03-03 12:01:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake
|
2018-02-24 12:06:44 +00:00
|
|
|
, libGL, libSM, 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
|
|
|
}:
|
|
|
|
|
2018-04-12 22:36:29 +01:00
|
|
|
let dfVersion = "0.44.09"; in
|
2017-12-06 23:53:24 +00:00
|
|
|
|
2016-01-12 17:56:59 +00:00
|
|
|
stdenv.mkDerivation {
|
2017-12-06 23:53:24 +00:00
|
|
|
name = "dwarf_fortress_unfuck-${dfVersion}";
|
2016-01-12 17:56:59 +00:00
|
|
|
|
2016-03-03 12:01:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "svenstaro";
|
|
|
|
repo = "dwarf_fortress_unfuck";
|
2017-12-06 23:53:24 +00:00
|
|
|
rev = dfVersion;
|
2018-01-18 18:53:42 +00:00
|
|
|
sha256 = "00yj4l4gazxg4i6fj9rwri6vm17i6bviy2mpkx0z5c0mvsr7s14b";
|
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 = [
|
2016-08-22 05:43:12 +01:00
|
|
|
libSM SDL SDL_image SDL_ttf glew openalSoft
|
2018-02-24 12:06:44 +00:00
|
|
|
ncurses gtk2 libsndfile zlib libGL
|
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" ];
|
|
|
|
|
2017-12-06 23:53:24 +00:00
|
|
|
passthru = { inherit dfVersion; };
|
2016-01-12 17:56:59 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Unfucked multimedia layer for Dwarf Fortress";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/svenstaro/dwarf_fortress_unfuck;
|
2016-01-12 17:56:59 +00:00
|
|
|
license = licenses.free;
|
2016-08-13 01:11:45 +01:00
|
|
|
platforms = platforms.linux;
|
2016-01-12 17:56:59 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|