3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #128039 from AndersonTorres/quick-patch

pythonPackages.hid: generalize postPatch
This commit is contained in:
Anderson Torres 2021-06-24 18:20:03 -03:00 committed by GitHub
commit 99d2847200
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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