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:
parent
0c17239639
commit
ba4f15538d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue