lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 59 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 libjpeg, 6 libGLU, 7 libGL, 8 libglut, 9 zlib, 10 cmake, 11 libX11, 12 libxml2, 13 libpng, 14 libXxf86vm, 15}: 16 17stdenv.mkDerivation rec { 18 pname = "freepv"; 19 version = "0.3.0"; 20 21 src = fetchurl { 22 url = "mirror://sourceforge/freepv/freepv-${version}.tar.gz"; 23 sha256 = "1w19abqjn64w47m35alg7bcdl1p97nf11zn64cp4p0dydihmhv56"; 24 }; 25 26 nativeBuildInputs = [ cmake ]; 27 buildInputs = [ 28 libjpeg 29 libGLU 30 libGL 31 libglut 32 zlib 33 libX11 34 libxml2 35 libpng 36 libXxf86vm 37 ]; 38 39 postPatch = '' 40 sed -i -e '/GECKO/d' CMakeLists.txt 41 sed -i -e '/mozilla/d' src/CMakeLists.txt 42 sed -i -e '1i \ 43 #include <cstdio>' src/libfreepv/OpenGLRenderer.cpp 44 sed -i -e '1i \ 45 #include <cstring>' src/libfreepv/Image.cpp 46 substituteInPlace src/libfreepv/Action.h \ 47 --replace NULL nullptr 48 substituteInPlace src/libfreepv/pngReader.cpp \ 49 --replace png_set_gray_1_2_4_to_8 png_set_expand_gray_1_2_4_to_8 50 ''; 51 52 env.NIX_CFLAGS_COMPILE = "-fpermissive -Wno-narrowing"; 53 54 meta = { 55 description = "Open source panorama viewer using GL"; 56 homepage = "https://freepv.sourceforge.net/"; 57 license = [ lib.licenses.lgpl21 ]; 58 }; 59}