summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/graphics/qrcode
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-11-28 00:06:25 +0300
committerMichael Raskin <7c6f434c@mail.ru>2014-11-28 00:12:26 +0300
commit0fc32b90d82092a12636ad5742a82c23713de172 (patch)
treeb99c96c950c5b3fe5bb028e3d70a6fc7f46fe696 /pkgs/tools/graphics/qrcode
parent9ef95441898d749e6a222943f4686b462ada6842 (diff)
Add qrcode minimalistic QR-code decode/encode tool (for pure codes only)
Diffstat (limited to 'pkgs/tools/graphics/qrcode')
-rw-r--r--pkgs/tools/graphics/qrcode/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/qrcode/default.nix b/pkgs/tools/graphics/qrcode/default.nix
new file mode 100644
index 000000000000..e5bc5517b89e
--- /dev/null
+++ b/pkgs/tools/graphics/qrcode/default.nix
@@ -0,0 +1,34 @@
+{stdenv, fetchgit}:
+let
+ s =
+ rec {
+ baseName = "qrcode";
+ date = "2014-01-01";
+ version = "git-${date}";
+ name = "${baseName}-${version}";
+ url = "https://github.com/qsantos/qrcode";
+ rev = "2843cbada3b768f60ee1ae13c65160083558cc03";
+ sha256 = "0x321xhzxk6ldvpr2090w14khj9n2gfay9db5vvvli16affpcrvb";
+ };
+ buildInputs = [
+ ];
+in
+stdenv.mkDerivation {
+ inherit (s) name version;
+ inherit buildInputs;
+ src = fetchgit {
+ inherit (s) rev url sha256;
+ };
+ installPhase = ''
+ mkdir -p "$out"/{bin,share/doc/qrcode}
+ cp qrcode "$out/bin"
+ cp DOCUMENTATION LICENCE "$out/share/doc/qrcode"
+ '';
+ meta = {
+ inherit (s) version;
+ description = ''A small QR-code tool'';
+ license = stdenv.lib.licenses.gpl3Plus;
+ maintainers = [stdenv.lib.maintainers.raskin];
+ platforms = stdenv.lib.platforms.linux;
+ };
+}