2008-11-15 18:54:09 +01:00
|
|
|
args :
|
|
|
|
let
|
|
|
|
lib = args.lib;
|
|
|
|
fetchurl = args.fetchurl;
|
|
|
|
|
2009-05-24 12:57:41 +02:00
|
|
|
version = lib.attrByPath ["version"] "3.0.3" args;
|
2008-11-15 18:54:09 +01:00
|
|
|
buildInputs = with args; [
|
|
|
|
libpng pkgconfig
|
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://megaui.net/fukuchi/works/qrencode/qrencode-${version}.tar.gz";
|
|
|
|
sha256 = "1f5nnbk016casqfprdli50ssv08l0gj5zrd0q4rdvzfwqy67i7vm";
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
|
|
|
phaseNames = ["doConfigure" "doMakeInstall"];
|
|
|
|
|
|
|
|
name = "qrencode-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "QR code encoder";
|
|
|
|
};
|
|
|
|
}
|