nixpkgs/pkgs/applications/misc/cataract/build.nix

44 lines
881 B
Nix
Raw Normal View History

{ lib, stdenv
2016-12-20 14:38:02 +00:00
, fetchgit
, autoreconfHook
, glib
, pkg-config
2016-12-20 14:38:02 +00:00
, libxml2
, exiv2
, imagemagick
, version
, sha256
, rev }:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
2016-12-20 14:38:02 +00:00
inherit version;
pname = "cataract";
2016-12-20 14:38:02 +00:00
src = fetchgit {
url = "git://git.bzatek.net/cataract";
inherit sha256 rev;
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ glib libxml2 exiv2 imagemagick ];
2016-12-20 14:38:02 +00:00
2019-09-15 00:31:09 +00:00
prePatch = ''
sed -i 's|#include <exiv2/exif.hpp>|#include <exiv2/exiv2.hpp>|' src/jpeg-utils.cpp
'';
2016-12-20 14:38:02 +00:00
installPhase = ''
mkdir $out/{bin,share} -p
cp src/cgg{,-dirgen} $out/bin/
'';
meta = with lib; {
2019-09-15 00:31:09 +00:00
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 14:38:02 +00:00
};
}