Merge pull request #204545 from SuperSandro2000/qrencode-nox

This commit is contained in:
Sandro 2022-12-07 22:29:48 +01:00 committed by GitHub
commit 13e33c7c98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -44,6 +44,7 @@ with lib;
networkmanager-sstp = super.networkmanager-vpnc.override { withGnome = false; };
networkmanager-vpnc = super.networkmanager-vpnc.override { withGnome = false; };
qemu = super.qemu.override { gtkSupport = false; spiceSupport = false; sdlSupport = false; };
qrencode = super.qrencode.overrideAttrs (_: { doCheck = false; });
zbar = super.zbar.override { enableVideo = false; withXorg = false; };
}));
};

View File

@ -12,12 +12,16 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ SDL2 libpng ] ++ lib.optionals stdenv.isDarwin [ libiconv libobjc ];
buildInputs = [ libpng ]
++ lib.optionals stdenv.isDarwin [ libiconv libobjc ];
configureFlags = [
"--with-tests"
];
checkInputs = [ SDL2 ];
doCheck = true;
checkPhase = ''
@ -33,13 +37,11 @@ stdenv.mkDerivation rec {
meta = with 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 yana ];
platforms = platforms.all;