forked from mirrors/nixpkgs
Merge pull request #128039 from AndersonTorres/quick-patch
pythonPackages.hid: generalize postPatch
This commit is contained in:
commit
99d2847200
|
@ -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