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).
This commit is contained in:
Andrew Morgan 2022-07-15 00:21:53 +01:00 committed by Robert Schütz
parent 7fbdf335d8
commit d6673a51bc

View File

@ -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