From ba4f15538d5d57fbf3d60f5d678e169450d2d8ac Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Thu, 24 Jun 2021 16:24:01 -0300 Subject: [PATCH] pythonPackages.hid: generalize postPatch According to @afontaine, the custom patch works in a Macintosh. Therefore I will drop the conditional. --- pkgs/development/python-modules/hid/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/hid/default.nix b/pkgs/development/python-modules/hid/default.nix index c45cf3d9a65e..8dc134c61c0f 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