Skip to content

Commit

Permalink
fgallery: add support for facedetect
Browse files Browse the repository at this point in the history
  • Loading branch information
rycee committed Jul 29, 2017
1 parent 138dd4f commit 9d4d629
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkgs/tools/graphics/fgallery/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{ stdenv, fetchurl, unzip, makeWrapper, perl, ImageExifTool
, CpanelJSONXS, coreutils, zip, imagemagick, pngcrush, lcms2, fbida }:
, CpanelJSONXS, coreutils, zip, imagemagick, pngcrush, lcms2
, facedetect, fbida }:

# TODO: add optional dependencies (snippet from fgallery source):
#
# if(system("jpegoptim -V >/dev/null 2>&1")) {
# $jpegoptim = 0;
# }
# if($facedet && system("facedetect -h >/dev/null 2>&1")) {
# fatal("cannot run \"facedetect\" (see http://www.thregr.org/~wavexx/hacks/facedetect/)");

stdenv.mkDerivation rec {
name = "fgallery-1.8.2";
Expand All @@ -34,7 +33,7 @@ stdenv.mkDerivation rec {
wrapProgram "$out/share/fgallery/fgallery" \
--set PERL5LIB "$PERL5LIB" \
--set PATH "${stdenv.lib.makeBinPath
[ coreutils zip imagemagick pngcrush lcms2 fbida ]}"
[ coreutils zip imagemagick pngcrush lcms2 facedetect fbida ]}"
'';

meta = with stdenv.lib; {
Expand Down

0 comments on commit 9d4d629

Please sign in to comment.