Merge pull request #328915 from OPNA2608/fix/quirc-linux

quirc: Fix FTBFS on Linux
This commit is contained in:
7c6f434c 2024-07-21 14:56:29 +00:00 committed by GitHub
commit ef78da5ee9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,13 +50,11 @@ stdenv.mkDerivation (finalAttrs: {
postInstall = ''
# don't install static library
rm $out/lib/libquirc.a
'' + (if stdenv.isDarwin then ''
'' + lib.optionalString stdenv.isDarwin ''
# Set absolute install name to avoid the need for DYLD_LIBRARY_PATH
dylib=$out/lib/libquirc.${finalAttrs.version}.dylib
${stdenv.cc.targetPrefix}install_name_tool -id "$dylib" "$dylib"
'' else ''
ln -s $out/lib/libquirc.so.* $out/lib/libquirc.so
'');
'';
meta = {
description = "Small QR code decoding library";