diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2011-09-04 09:12:00 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2011-09-04 09:12:00 +0000 |
commit | 09114ea85882c5abffb3c385d59bea08494be992 (patch) | |
tree | 3c1fe148227287cf9b6cd17fdf98c56e2106e448 /pkgs/tools/graphics/zbar | |
parent | 0803c5d069fe829549d2afb0af66dfc1a8646ae3 (diff) |
Adding ZBar
svn path=/nixpkgs/trunk/; revision=29001
Diffstat (limited to 'pkgs/tools/graphics/zbar')
-rw-r--r-- | pkgs/tools/graphics/zbar/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/zbar/default.nix b/pkgs/tools/graphics/zbar/default.nix new file mode 100644 index 0000000000000..4bced99820bf3 --- /dev/null +++ b/pkgs/tools/graphics/zbar/default.nix @@ -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 + |