2024-06-05 17:33:04 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, unstableGitUpdater }:
|
2017-01-07 14:58:45 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-11-10 21:21:47 +00:00
|
|
|
pname = "qrcode";
|
2024-07-23 13:53:14 +00:00
|
|
|
version = "0-unstable-2024-07-18";
|
2016-02-12 15:22:56 +00:00
|
|
|
|
2017-01-07 14:58:45 +00:00
|
|
|
src = fetchFromGitHub {
|
2021-11-10 21:21:47 +00:00
|
|
|
owner = "qsantos";
|
|
|
|
repo = "qrcode";
|
2024-07-23 13:53:14 +00:00
|
|
|
rev = "6e882a26a30ab9478ba98591ecc547614fb62b69";
|
|
|
|
hash = "sha256-wJL+XyYnI8crKVu+xwCioD5YcFjE5a92qkbOB7juw+s=";
|
2014-11-27 21:06:25 +00:00
|
|
|
};
|
2016-02-12 15:22:56 +00:00
|
|
|
|
2021-01-27 16:03:14 +00:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
|
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
|
|
|
|
2024-06-05 17:33:04 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "Small QR-code tool";
|
2023-07-13 14:48:44 +00:00
|
|
|
homepage = "https://github.com/qsantos/qrcode";
|
2017-01-07 14:58:45 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-06-05 17:33:04 +00:00
|
|
|
maintainers = with maintainers; [ raskin lucasew ];
|
2021-01-27 16:03:14 +00:00
|
|
|
platforms = with platforms; unix;
|
2023-11-23 02:51:17 +00:00
|
|
|
mainProgram = "qrcode";
|
2014-11-27 21:06:25 +00:00
|
|
|
};
|
|
|
|
}
|