2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "qrcode";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "unstable-2023-12-02";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-06 16:07:01 +00:00
|
|
|
owner = "qsantos";
|
|
|
|
repo = "qrcode";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "96fac69ad3e4f616ce75c0e3ef4ed0574cfab315";
|
|
|
|
hash = "sha256-Aesjys6FchB6qcLRWJNGfcEZRlO3stw3+IM8Xe2pF+Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/{bin,share/doc/qrcode}
|
|
|
|
cp qrcode "$out/bin"
|
|
|
|
cp DOCUMENTATION LICENCE "$out/share/doc/qrcode"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "A small QR-code tool";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/qsantos/qrcode";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = with platforms; unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "qrcode";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|