16 stdenv.mkDerivation rec {
21 url = "mirror://sourceforge/freepv/freepv-${version}.tar.gz";
22 sha256 = "1w19abqjn64w47m35alg7bcdl1p97nf11zn64cp4p0dydihmhv56";
25 nativeBuildInputs = [ cmake ];
26 buildInputs = [ libjpeg libGLU libGL libglut zlib libX11 libxml2 libpng libXxf86vm ];
29 sed -i -e '/GECKO/d' CMakeLists.txt
30 sed -i -e '/mozilla/d' src/CMakeLists.txt
32 #include <cstdio>' src/libfreepv/OpenGLRenderer.cpp
34 #include <cstring>' src/libfreepv/Image.cpp
35 substituteInPlace src/libfreepv/Action.h \
36 --replace NULL nullptr
37 substituteInPlace src/libfreepv/pngReader.cpp \
38 --replace png_set_gray_1_2_4_to_8 png_set_expand_gray_1_2_4_to_8
41 env.NIX_CFLAGS_COMPILE = "-fpermissive -Wno-narrowing";
44 description = "Open source panorama viewer using GL";
45 homepage = "https://freepv.sourceforge.net/";
46 license = [ lib.licenses.lgpl21 ];