Merge branch 'staging' into closure-size
This commit is contained in:
@@ -11,11 +11,11 @@
|
||||
# fatal("cannot run \"facedetect\" (see http://www.thregr.org/~wavexx/hacks/facedetect/)");
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fgallery-1.7";
|
||||
name = "fgallery-1.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.thregr.org/~wavexx/software/fgallery/releases/${name}.zip";
|
||||
sha256 = "1iix6p8viwnsq3zn9vg99sx20nmgk2p5als3j1lk914nz3anvai4";
|
||||
sha256 = "1n237sk7fm4yrpn69qaz9fwbjl6i94y664q7d16bhngrcil3bq1d";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip makeWrapper perl ImageExifTool JSON ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
p=( $(for n in $(fc-list | sed -r -e 's|^([^:]+):.*$|\1|'); do echo $(dirname "$n"); done | sort | uniq) )
|
||||
p=( $(fc-list : file | sed "s@/[^/]*: @@" | sort -u) )
|
||||
IFS=:
|
||||
export GDFONTPATH="${GDFONTPATH}${GDFONTPATH:+:}${p[*]}"
|
||||
unset IFS p
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl, libjpeg }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "jhead-${version}";
|
||||
@@ -9,12 +9,15 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0pl9s9ssb2a9di82f3ypin2hd098ns8kzdsxw3i2y94f07d03k48";
|
||||
};
|
||||
|
||||
buildInputs = [ libjpeg ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace makefile \
|
||||
--replace /usr/local/bin $out/bin
|
||||
|
||||
substituteInPlace jhead.c \
|
||||
--replace "\" Compiled: \"__DATE__" ""
|
||||
--replace "\" Compiled: \"__DATE__" "" \
|
||||
--replace "jpegtran -trim" "${libjpeg}/bin/jpegtran -trim"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
{ stdenv, fetchurl, libpng }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pngcrush-1.7.85";
|
||||
name = "pngcrush-1.7.92";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/pmt/${name}-nolib.tar.xz";
|
||||
sha256 = "1hvcync32x2ign694scafkj7xc73gzyy8n2l5z026yxckilyyv19";
|
||||
sha256 = "0dlwbqckv90cpvg8qhkl3nk5yb75ddi61vbpmmp9n0j6qq9lp6y4";
|
||||
};
|
||||
|
||||
makeFlags = [ "CC=cc" "LD=cc" ]; # gcc and/or clang compat
|
||||
|
||||
configurePhase = ''
|
||||
sed -i s,/usr,$out, Makefile
|
||||
'';
|
||||
@@ -18,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||
homepage = http://pmt.sourceforge.net/pngcrush;
|
||||
description = "A PNG optimizer";
|
||||
license = stdenv.lib.licenses.free;
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
||||
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
{ stdenv, fetchurl, libpng, opencv }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libdecodeqr-${version}";
|
||||
version = "0.9.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://debian/pool/main/libd/libdecodeqr/libdecodeqr_${version}.orig.tar.gz";
|
||||
sha256 = "1kmljwx69h7zq6zlp2j19bbpz11px45z1abw03acrxjyzz5f1f13";
|
||||
};
|
||||
|
||||
buildInputs = [ libpng opencv ];
|
||||
|
||||
preConfigure = ''
|
||||
cd src
|
||||
sed -e /LDCONFIG/d -i libdecodeqr/Makefile.in
|
||||
sed -e '/#include <cv.h>/a#include <ml.h>' -i libdecodeqr/imagereader.h
|
||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${opencv}/include/opencv"
|
||||
export NIX_LDFLAGS="$NIX_LDFLAGS -lcxcore"
|
||||
'';
|
||||
|
||||
preInstall = "mkdir -p $out/bin $out/lib $out/include $out/share";
|
||||
postInstall = "cp sample/simple/simpletest $out/bin/qrdecode";
|
||||
|
||||
meta = {
|
||||
description = "QR code decoder library";
|
||||
broken = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user