summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/hidapi
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2021-01-24 01:29:22 +0100
committerPavol Rusnak <pavol@rusnak.io>2021-01-24 01:29:22 +0100
commita4bbfba80dbdccf7c3d3ac64fc7afa2494cf743a (patch)
tree3130d7196a32753da705075e39ed2a2d6673a9f2 /pkgs/development/python-modules/hidapi
parentMerge pull request #108983 from markuskowa/dev-mpi (diff)
downloadnixpkgs-a4bbfba80dbdccf7c3d3ac64fc7afa2494cf743a.tar.gz
pkgs/development/python-modules: stdenv.lib -> lib
Diffstat (limited to 'pkgs/development/python-modules/hidapi')
-rw-r--r--pkgs/development/python-modules/hidapi/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/hidapi/default.nix b/pkgs/development/python-modules/hidapi/default.nix
index c5ee1c208392..790e7aa08fc2 100644
--- a/pkgs/development/python-modules/hidapi/default.nix
+++ b/pkgs/development/python-modules/hidapi/default.nix
@@ -10,16 +10,16 @@ buildPythonPackage rec {
};
propagatedBuildInputs =
- stdenv.lib.optionals stdenv.isLinux [ libusb1 udev ] ++
- stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AppKit CoreFoundation IOKit ]) ++
+ lib.optionals stdenv.isLinux [ libusb1 udev ] ++
+ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AppKit CoreFoundation IOKit ]) ++
[ cython ];
# Fix the USB backend library lookup
- postPatch = stdenv.lib.optionalString stdenv.isLinux ''
+ postPatch = lib.optionalString stdenv.isLinux ''
libusb=${libusb1.dev}/include/libusb-1.0
test -d $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; }
sed -i -e "s|/usr/include/libusb-1.0|$libusb|" setup.py
- '' + stdenv.lib.optionalString stdenv.isDarwin ''
+ '' + lib.optionalString stdenv.isDarwin ''
substituteInPlace setup.py --replace 'macos_sdk_path =' 'macos_sdk_path = "" #'
'';