Author: raskin Date: Sun Sep 4 09:12:00 2011 New Revision: 29001 URL: https://svn.nixos.org/websvn/nix/?rev=29001&sc=1
Log: Adding ZBar Added: nixpkgs/trunk/pkgs/tools/graphics/zbar/ nixpkgs/trunk/pkgs/tools/graphics/zbar/default.nix Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix Added: nixpkgs/trunk/pkgs/tools/graphics/zbar/default.nix ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ nixpkgs/trunk/pkgs/tools/graphics/zbar/default.nix Sun Sep 4 09:12:00 2011 (r29001) @@ -0,0 +1,50 @@ +x@{builderDefsPackage + , imagemagickBig, pkgconfig, python, pygtk, perl, libX11, libv4l + , qt4, lzma + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + 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; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doConfigure" "doMakeInstall"]; + + meta = { + description = "Bar code toolset"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + license = a.lib.licenses.lgpl21; + }; + passthru = { + updateInfo = { + downloadPage = "http://zbar.sourceforge.net/"; + }; + }; +}) x + Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix ============================================================================== --- nixpkgs/trunk/pkgs/top-level/all-packages.nix Sun Sep 4 08:54:19 2011 (r29000) +++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Sun Sep 4 09:12:00 2011 (r29001) @@ -1570,6 +1570,8 @@ xtreemfs = callPackage ../tools/filesystems/xtreemfs {}; + zbar = callPackage ../tools/graphics/zbar {}; + zdelta = callPackage ../tools/compression/zdelta { }; zile = callPackage ../applications/editors/zile { }; _______________________________________________ nix-commits mailing list nix-comm...@cs.uu.nl http://mail.cs.uu.nl/mailman/listinfo/nix-commits