mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
a406725e59
handle truncated files and give proper prototypes.
31 lines
779 B
Nix
31 lines
779 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "qrcode";
|
|
version = "unstable-2023-12-02";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "qsantos";
|
|
repo = "qrcode";
|
|
rev = "96fac69ad3e4f616ce75c0e3ef4ed0574cfab315";
|
|
hash = "sha256-Aesjys6FchB6qcLRWJNGfcEZRlO3stw3+IM8Xe2pF+Q=";
|
|
};
|
|
|
|
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"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A small QR-code tool";
|
|
homepage = "https://github.com/qsantos/qrcode";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = with platforms; unix;
|
|
mainProgram = "qrcode";
|
|
};
|
|
}
|