Merge remote-tracking branch 'origin/master' into closure-size

This commit is contained in:
Luca Bruno
2015-11-25 21:37:30 +01:00
659 changed files with 46562 additions and 13611 deletions
+12 -33
View File
@@ -1,42 +1,21 @@
x@{builderDefsPackage
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
{ stdenv, fetchurl }:
buildInputs = map (n: builtins.getAttr n x)
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
sourceInfo = rec {
version = "0.99";
baseName="barcode";
name="${baseName}-${version}";
url="mirror://gnu/${baseName}/${name}.tar.xz";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
stdenv.mkDerivation rec {
name = "${pname}-${version}";
version = "0.99";
pname = "barcode";
src = fetchurl {
url = "mirror://gnu/${pname}/${name}.tar.xz";
sha256 = "1indapql5fjz0bysyc88cmc54y8phqrbi7c76p71fgjp45jcyzp8";
};
inherit (sourceInfo) name version;
inherit buildInputs;
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall"];
meta = {
meta = with stdenv.lib; {
description = "GNU barcode generator";
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms; allBut darwin;
maintainers = with maintainers; [ raskin ];
platforms = with platforms; allBut darwin;
downloadPage = "http://ftp.gnu.org/gnu/barcode/";
updateWalker = true;
inherit version;
homepage = http://ftp.gnu.org/gnu/barcode/;
};
}) x
}
+21 -27
View File
@@ -1,38 +1,32 @@
a @ {libpng, bison, flex, ffmpeg, fullDepEntry, ...} :
let
s = import ./src-for-default.nix;
buildInputs = with a; [
libpng bison flex ffmpeg
];
in
rec {
src = a.fetchUrlFromSrcInfo s;
{ stdenv, fetchurl, libpng, bison, flex, ffmpeg }:
inherit (s) name;
inherit buildInputs;
configureFlags = [];
stdenv.mkDerivation rec {
name = "cfdg-${version}";
version = "3.0.2";
src = fetchurl {
sha256 = "1pd1hjippbhad8l4s4lsglykh22i24qfrgmnxrsx71bvcqbr356p";
url = "http://www.contextfreeart.org/download/ContextFreeSource${version}.tgz";
};
/* doConfigure should be removed if not needed */
phaseNames = ["doFixInc" "doMake" "copyFiles"];
doFixInc = a.fullDepEntry ''
buildInputs = [ libpng bison flex ffmpeg ];
postPatch = ''
sed -e "/YY_NO_UNISTD/a#include <stdio.h>" -i src-common/cfdg.l
'' ["doUnpack" "minInit"];
copyFiles = a.fullDepEntry ''
'';
installPhase = ''
mkdir -p $out/bin
cp cfdg $out/bin/
mkdir -p $out/share/doc/${name}
cp *.txt $out/share/doc/${name}
'' ["defEnsureDir" "doMake"];
meta = {
'';
meta = with stdenv.lib; {
description = "Context-free design grammar - a tool for graphics generation";
maintainers = [
a.lib.maintainers.raskin
];
platforms = with a.lib.platforms;
linux;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
homepage = http://contextfreeart.org/;
downloadPage = "http://contextfreeart.org/mediawiki/index.php/Download_page";
};
}
+16 -6
View File
@@ -2,22 +2,32 @@
with stdenv.lib;
stdenv.mkDerivation {
name = "gifsicle-1.87";
stdenv.mkDerivation rec {
name = "gifsicle-${version}";
version = "1.88";
src = fetchurl {
url = http://www.lcdf.org/gifsicle/gifsicle-1.87.tar.gz;
sha256 = "078rih7gq86ixjqbnn5z1jsh11qlfisw6k8dxaccsh5amhybw2j7";
url = "http://www.lcdf.org/gifsicle/${name}.tar.gz";
sha256 = "4585d2e683d7f68eb8fcb15504732d71d7ede48ab5963e61915201f9e68305be";
};
buildInputs = optional gifview [ xproto libXt libX11 ];
configureFlags = []
++ optional (!gifview) [ "--disable-gifview" ];
LDFLAGS = optional static "-static";
doCheck = true;
checkPhase = ''
./src/gifsicle --info logo.gif
'';
meta = {
description = "Command-line tool for creating, editing, and getting information about GIF images and animations";
homepage = http://www.lcdf.org/gifsicle/;
homepage = https://www.lcdf.org/gifsicle/;
license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
platforms = platforms.all;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu zimbatm ];
};
}
+13 -28
View File
@@ -1,44 +1,29 @@
args :
let
lib = args.lib;
fetchurl = args.fetchurl;
fullDepEntry = args.fullDepEntry;
{ stdenv, fetchurl, libpng, opencv }:
stdenv.mkDerivation rec {
name = "libdecodeqr-${version}";
version = "0.9.3";
version = lib.attrByPath ["version"] "0.9.3" args;
buildInputs = with args; [
libpng opencv
];
in
rec {
src = fetchurl {
url = "mirror://debian/pool/main/libd/libdecodeqr/libdecodeqr_${version}.orig.tar.gz";
sha256 = "1kmljwx69h7zq6zlp2j19bbpz11px45z1abw03acrxjyzz5f1f13";
};
inherit buildInputs;
configureFlags = [];
buildInputs = [ libpng opencv ];
/* doConfigure should be specified separately */
phaseNames = ["preConfigure" "doConfigure" "doMake"
"createDirs" "doMakeInstall" "postInstall"];
preConfigure = fullDepEntry ''
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${args.opencv}/include/opencv"
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${opencv}/include/opencv"
export NIX_LDFLAGS="$NIX_LDFLAGS -lcxcore"
'' ["doUnpack"];
postInstall = fullDepEntry ''
cp sample/simple/simpletest $out/bin/qrdecode
cd ..
'' ["doMake"];
createDirs = fullDepEntry ''
mkdir -p $out/bin $out/lib $out/include $out/share
'' ["defEnsureDir"];
'';
preInstall = "mkdir -p $out/bin $out/lib $out/include $out/share";
postInstall = "cp sample/simple/simpletest $out/bin/qrdecode";
name = "libdecodeqr-" + version;
meta = {
description = "QR code decoder library";
broken = true;
};
}
+21 -40
View File
@@ -1,39 +1,23 @@
x@{builderDefsPackage
, imagemagickBig, pkgconfig, python, pygtk, perl, libX11, libv4l
, qt4, lzma, gtk2
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
{ stdenv, fetchurl, imagemagickBig, pkgconfig, python, pygtk, perl
, libX11, libv4l, qt4, lzma, gtk2
}:
buildInputs = map (n: builtins.getAttr n x)
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
sourceInfo = rec {
baseName="zbar";
version="0.10";
name="${baseName}-${version}";
pName="${baseName}";
url="mirror://sourceforge/project/${pName}/${baseName}/${version}/${name}.tar.bz2";
hash="1imdvf5k34g1x2zr6975basczkz3zdxg6xnci50yyp5yvcwznki3";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
sha256 = sourceInfo.hash;
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "zbar";
version = "0.10";
src = fetchurl {
url = "mirror://sourceforge/project/${pname}/${pname}/${version}/${name}.tar.bz2";
sha256 = "1imdvf5k34g1x2zr6975basczkz3zdxg6xnci50yyp5yvcwznki3";
};
inherit (sourceInfo) name version;
inherit buildInputs;
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall"];
buildInputs =
[ imagemagickBig pkgconfig python pygtk perl libX11
libv4l qt4 lzma gtk2 ];
configureFlags = ["--disable-video"];
meta = {
meta = with stdenv.lib; {
description = "Bar code reader";
longDescription = ''
ZBar is an open source software suite for reading bar codes from various
@@ -42,18 +26,15 @@ rec {
EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR
Code.
'';
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms;
linux;
license = a.lib.licenses.lgpl21;
maintainers = with maintainers; [ raskin ];
platforms = with platforms; linux;
license = licenses.lgpl21;
homepage = http://zbar.sourceforge.net/;
};
passthru = {
updateInfo = {
downloadPage = "http://zbar.sourceforge.net/";
};
};
}) x
}