qrencode: fix build on x86_64-darwin

This commit is contained in:
Weijia Wang 2022-10-11 08:33:29 +02:00
parent 9b61ff349a
commit 24addef4ae
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, pkg-config, SDL2, libpng, libiconv }:
{ lib, stdenv, fetchurl, pkg-config, SDL2, libpng, libiconv, libobjc }:
stdenv.mkDerivation rec {
pname = "qrencode";
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ SDL2 libpng ] ++ lib.optionals stdenv.isDarwin [ libiconv ];
buildInputs = [ SDL2 libpng ] ++ lib.optionals stdenv.isDarwin [ libiconv libobjc ];
configureFlags = [
"--with-tests"

View file

@ -28569,7 +28569,9 @@ with pkgs;
qrcodegen = callPackage ../development/libraries/qrcodegen { };
qrencode = callPackage ../development/libraries/qrencode { };
qrencode = callPackage ../development/libraries/qrencode {
inherit (darwin) libobjc;
};
geeqie = callPackage ../applications/graphics/geeqie { };