mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 12:04:40 +00:00
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
@ -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 New Issue
Block a user