mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 18:12:46 +00:00
f7f938a1d1
getAttr was ambiguous. It's also a builtin function fix svn path=/nixpkgs/trunk/; revision=15692
28 lines
594 B
Nix
28 lines
594 B
Nix
args :
|
|
let
|
|
lib = args.lib;
|
|
fetchurl = args.fetchurl;
|
|
|
|
version = lib.attrByPath ["version"] "3.0.3" args;
|
|
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";
|
|
};
|
|
}
|