depot/pkgs/by-name/qr/qrcode/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

32 lines
858 B
Nix

{ 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";
};
}