blob: 0d919daf813771f8721b4364e4a320dde2dd74e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ lib, stdenv, fetchFromGitHub, unstableGitUpdater }:
stdenv.mkDerivation {
pname = "qrcode";
version = "0-unstable-2024-07-18";
src = fetchFromGitHub {
owner = "qsantos";
repo = "qrcode";
rev = "6e882a26a30ab9478ba98591ecc547614fb62b69";
hash = "sha256-wJL+XyYnI8crKVu+xwCioD5YcFjE5a92qkbOB7juw+s=";
};
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
installPhase = ''
mkdir -p "$out"/{bin,share/doc/qrcode}
cp qrcode "$out/bin"
cp DOCUMENTATION LICENCE "$out/share/doc/qrcode"
'';
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
description = "Small QR-code tool";
homepage = "https://github.com/qsantos/qrcode";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ raskin lucasew ];
platforms = with platforms; unix;
mainProgram = "qrcode";
};
}
|