pythonPackages.hid: generalize postPatch

According to @afontaine, the custom patch works in a Macintosh. Therefore I will
drop the conditional.
This commit is contained in:
AndersonTorres 2021-06-24 16:24:01 -03:00
parent 0c17239639
commit ba4f15538d

View file

@ -19,7 +19,7 @@ buildPythonPackage rec {
checkInputs = [ nose ];
postPatch = lib.optionalString stdenv.isLinux ''
postPatch = ''
hidapi=${hidapi}/lib/
test -d $hidapi || { echo "ERROR: $hidapi doesn't exist, please update/fix this build expression."; exit 1; }
sed -i -e "s|libhidapi|$hidapi/libhidapi|" hid/__init__.py