forked from mirrors/nixpkgs
Add qrcode minimalistic QR-code decode/encode tool (for pure codes only)
This commit is contained in:
parent
9ef9544189
commit
0fc32b90d8
34
pkgs/tools/graphics/qrcode/default.nix
Normal file
34
pkgs/tools/graphics/qrcode/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -10507,6 +10507,8 @@ let
|
|||
|
||||
qmmp = callPackage ../applications/audio/qmmp { };
|
||||
|
||||
qrcode = callPackage ../tools/graphics/qrcode {};
|
||||
|
||||
qsampler = callPackage ../applications/audio/qsampler { };
|
||||
|
||||
qsynth = callPackage ../applications/audio/qsynth { };
|
||||
|
|
Loading…
Reference in a new issue