2016-12-20 15:38:02 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchgit
|
|
|
|
, autoreconfHook
|
|
|
|
, glib
|
|
|
|
, pkgconfig
|
|
|
|
, libxml2
|
|
|
|
, exiv2
|
|
|
|
, imagemagick
|
|
|
|
, version
|
|
|
|
, sha256
|
|
|
|
, rev }:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2016-12-20 15:38:02 +01:00
|
|
|
inherit version;
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "cataract";
|
2016-12-20 15:38:02 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.bzatek.net/cataract";
|
|
|
|
inherit sha256 rev;
|
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ glib libxml2 exiv2 imagemagick ];
|
2016-12-20 15:38:02 +01:00
|
|
|
|
2019-09-15 02:31:09 +02:00
|
|
|
prePatch = ''
|
|
|
|
sed -i 's|#include <exiv2/exif.hpp>|#include <exiv2/exiv2.hpp>|' src/jpeg-utils.cpp
|
|
|
|
'';
|
|
|
|
|
2016-12-20 15:38:02 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir $out/{bin,share} -p
|
|
|
|
cp src/cgg{,-dirgen} $out/bin/
|
|
|
|
'';
|
|
|
|
|
2019-09-15 02:31:09 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://cgg.bzatek.net/";
|
|
|
|
description = "A simple static web photo gallery, designed to be clean and easily usable";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2016-12-20 15:38:02 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|