python3.pkgs.pyudev: use lib.getLib systemd instead of systemd.lib

This will pick the `lib` output if it exists, otherwise default to `out`.
This commit is contained in:
Florian Klink 2020-08-12 20:16:26 +02:00
parent 77a9788b08
commit 8b5deb080d

View file

@ -13,7 +13,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace src/pyudev/_ctypeslib/utils.py \
--replace "find_library(name)" "'${systemd.lib}/lib/libudev.so'"
--replace "find_library(name)" "'${lib.getLib systemd}/lib/libudev.so'"
'';
checkInputs = [ pytest mock hypothesis docutils ];