9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ stdenv, fetchurl, pkg-config, SDL2, libpng, libiconv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "qrencode";
|
|
version = "4.1.1";
|
|
|
|
outputs = [ "bin" "out" "man" "dev" ];
|
|
|
|
src = fetchurl {
|
|
url = "https://fukuchi.org/works/qrencode/qrencode-${version}.tar.gz";
|
|
sha256 = "sha256-2kSO1PUqumvLDNSMrA3VG4aSvMxM0SdDFAL8pvgXHo4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ SDL2 libpng ] ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv ];
|
|
|
|
configureFlags = [
|
|
"--with-tests"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
pushd tests
|
|
./test_basic.sh
|
|
popd
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://fukuchi.org/works/qrencode/";
|
|
description = "C library 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 mobile phone with CCD.
|
|
'';
|
|
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ adolfogc yegortimoshenko ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|