nixpkgs/pkgs/by-name/qr/qrcode/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
858 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, unstableGitUpdater }:
2017-01-07 14:58:45 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "qrcode";
version = "0-unstable-2024-07-18";
2016-02-12 15:22:56 +00:00
2017-01-07 14:58:45 +00:00
src = fetchFromGitHub {
owner = "qsantos";
repo = "qrcode";
rev = "6e882a26a30ab9478ba98591ecc547614fb62b69";
hash = "sha256-wJL+XyYnI8crKVu+xwCioD5YcFjE5a92qkbOB7juw+s=";
};
2016-02-12 15:22:56 +00:00
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"
'';
2016-02-12 15:22:56 +00:00
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
description = "Small QR-code tool";
homepage = "https://github.com/qsantos/qrcode";
2017-01-07 14:58:45 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ raskin lucasew ];
platforms = with platforms; unix;
2023-11-23 02:51:17 +00:00
mainProgram = "qrcode";
};
}