18 url = "git://git.bzatek.net/cataract";
22 nativeBuildInputs = [ autoreconfHook pkg-config ];
23 buildInputs = [ glib libxml2 exiv2 imagemagick6 ];
26 sed -i 's|#include <exiv2/exif.hpp>|#include <exiv2/exiv2.hpp>|' src/jpeg-utils.cpp
29 # Add workaround for -fno-common toolchains like upstream gcc-10 to
30 # avoid build failures like:
31 # ld: stats.o:/build/cataract-675e647/src/stats.h:24: multiple definition of
32 # `stats_images'; cgg.o:/build/cataract-675e647/src/stats.h:24: first defined here
33 env.NIX_CFLAGS_COMPILE = "-fcommon";
36 mkdir $out/{bin,share} -p
37 cp src/cgg{,-dirgen} $out/bin/
41 homepage = "http://cgg.bzatek.net/";
42 description = "Simple static web photo gallery, designed to be clean and easily usable";
43 license = licenses.gpl2;
44 maintainers = [ maintainers.matthiasbeyer ];
45 platforms = with platforms; linux ++ darwin;