Commit d6673a51 authored by Andrew Morgan's avatar Andrew Morgan Committed by Robert Schütz
Browse files

python3Packages.nextcord: fix issue with loading libopus

The substitution patch used to point nextcord to the installed location
of libopus in nix's store was incorrectly formatted:

* `@opus@` was used while default.nix attempted to substitute instances of
  `@libopus@`.
* `ctypes.util.find_library(<library_name>)` will return a path to a
  library. If we already have the path (provided by the substitution),
  then `find_library` is not necessary to call (nor will it produce the
  desired result).
parent 7fbdf335
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ index 52e4ddbd..d8b8090b 100644
             _lib = libopus_loader(_filename)
         else:
-            opus = ctypes.util.find_library("opus")
+            opus = ctypes.util.find_library("@opus@")
+            opus = "@libopus@"
 
             if opus is None:
                 _lib = None