Unverified Commit 8f4c4b8e authored by Pavol Rusnak's avatar Pavol Rusnak
Browse files

zbar: fix build on darwin

parent 6d47c0b0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -106,6 +106,11 @@ stdenv.mkDerivation rec {
    argp-standalone
  ];

  # fix iconv linking on macOS
  preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
    export LDFLAGS="-liconv"
  '';

  # Note: postConfigure instead of postPatch in order to include some
  # autoconf-generated files. The template files for the autogen'd scripts are
  # not chmod +x, so patchShebangs misses them.