about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-06-24 16:24:01 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-06-24 17:37:12 -0300
commitba4f15538d5d57fbf3d60f5d678e169450d2d8ac (patch)
treeff7bce171c4df3fd60490326a6d64819c5f48482
parent0c172396392c4602630271594b00d3ba01b33fce (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.nix2
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