qrencode: fix tests

This commit is contained in:
Jan Tojnar 2019-01-01 17:38:11 +01:00
parent c5c2ac4f45
commit 317249e5ae
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -14,8 +14,22 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ SDL2 libpng ];
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";