2016-02-12 15:22:56 +00:00
|
|
|
{ stdenv, fetchgit }:
|
2014-11-27 21:06:25 +00:00
|
|
|
let
|
|
|
|
s =
|
|
|
|
rec {
|
|
|
|
baseName = "qrcode";
|
|
|
|
date = "2014-01-01";
|
|
|
|
version = "git-${date}";
|
|
|
|
name = "${baseName}-${version}";
|
|
|
|
url = "https://github.com/qsantos/qrcode";
|
|
|
|
rev = "2843cbada3b768f60ee1ae13c65160083558cc03";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "1qli0b62yngqj66v6vdqqgcysy3q3fr5vwpf7yf0d9a0dg862x8a";
|
2014-11-27 21:06:25 +00:00
|
|
|
};
|
|
|
|
buildInputs = [
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
inherit buildInputs;
|
2016-02-12 15:22:56 +00:00
|
|
|
|
2014-11-27 21:06:25 +00:00
|
|
|
src = fetchgit {
|
|
|
|
inherit (s) rev url sha256;
|
|
|
|
};
|
2016-02-12 15:22:56 +00:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "fortify" ];
|
2016-02-12 15:22:56 +00:00
|
|
|
|
2014-11-27 21:06:25 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/{bin,share/doc/qrcode}
|
|
|
|
cp qrcode "$out/bin"
|
|
|
|
cp DOCUMENTATION LICENCE "$out/share/doc/qrcode"
|
|
|
|
'';
|
2016-02-12 15:22:56 +00:00
|
|
|
|
2014-11-27 21:06:25 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|