Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
77 lines
1.5 KiB
Nix
77 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
pkg-config,
|
|
libpng,
|
|
libiconv,
|
|
autoreconfHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "qrencode";
|
|
version = "4.1.1";
|
|
|
|
outputs = [
|
|
"bin"
|
|
"out"
|
|
"man"
|
|
"dev"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fukuchi";
|
|
repo = "libqrencode";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-nbrmg9SqCqMrLE7WCfNEzMV/eS9UVCKCrjBrGMzAsLk";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
autoreconfHook
|
|
];
|
|
|
|
buildInputs = [
|
|
libiconv
|
|
libpng
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
pushd tests
|
|
./test_basic.sh
|
|
popd
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
passthru = {
|
|
tests = finalAttrs.finalPackage.overrideAttrs {
|
|
configureFlags = [ "--with-tests" ];
|
|
doCheck = true;
|
|
};
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://fukuchi.org/works/qrencode/";
|
|
description = "C library and command line tool for encoding data in a QR Code symbol";
|
|
longDescription = ''
|
|
Libqrencode is a C library for encoding data in a QR Code symbol,
|
|
a kind of 2D symbology that can be scanned by handy terminals
|
|
such as a smartphone.
|
|
|
|
The library also contains qrencode, a command-line utility to output
|
|
QR Code images in various formats.
|
|
'';
|
|
license = lib.licenses.lgpl21Plus;
|
|
maintainers = [ lib.maintainers.mdaniels5757 ];
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "qrencode";
|
|
};
|
|
})
|