2008-11-13 14:31:10 +01:00
|
|
|
args :
|
|
|
|
let
|
|
|
|
lib = args.lib;
|
|
|
|
fetchurl = args.fetchurl;
|
|
|
|
|
2009-03-19 14:59:00 +01:00
|
|
|
version = lib.getAttr ["version"] "0.7.0" args;
|
2008-11-13 14:31:10 +01:00
|
|
|
buildInputs = with args; [
|
2009-03-19 14:59:00 +01:00
|
|
|
libpng libtiff libjpeg librsvg imagemagick pkgconfig
|
|
|
|
zlib libX11 bzip2
|
2008-11-13 14:31:10 +01:00
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://prdownloads.sourceforge.net/libdmtx/libdmtx-${version}.tar.bz2";
|
2009-03-19 14:59:00 +01:00
|
|
|
sha256 = "00w0pvpbwqqa1c8s85v8vf8w1x116yh7qg5fplxj5jhmfizcama2";
|
2008-11-13 14:31:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
|
|
|
phaseNames = ["doConfigure" "doMakeInstall"];
|
|
|
|
|
|
|
|
name = "dmtx-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "DataMatrix (2D bar code) processing tools.";
|
|
|
|
};
|
|
|
|
}
|