diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2021-06-24 16:24:01 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2021-06-24 17:37:12 -0300 |
commit | ba4f15538d5d57fbf3d60f5d678e169450d2d8ac (patch) | |
tree | ff7bce171c4df3fd60490326a6d64819c5f48482 | |
parent | 0c172396392c4602630271594b00d3ba01b33fce (diff) |
pythonPackages.hid: generalize postPatch
According to @afontaine, the custom patch works in a Macintosh. Therefore I will drop the conditional.
-rw-r--r-- | pkgs/development/python-modules/hid/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/hid/default.nix b/pkgs/development/python-modules/hid/default.nix index c45cf3d9a65e7..8dc134c61c0f1 100644 --- a/pkgs/development/python-modules/hid/default.nix +++ b/pkgs/development/python-modules/hid/default.nix @@ -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 |