pkgs/development/libraries: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-21 19:11:02 -08:00
committed by Jonathan Ringer
parent 046d24424e
commit 66e44425c6
1770 changed files with 4913 additions and 4912 deletions
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
@@ -26,18 +26,18 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config autoreconfHook ];
propagatedBuildInputs =
stdenv.lib.optional enableUdev udev ++
stdenv.lib.optionals stdenv.isDarwin [ libobjc IOKit ];
lib.optional enableUdev udev ++
lib.optionals stdenv.isDarwin [ libobjc IOKit ];
dontDisableStatic = withStatic;
configureFlags = stdenv.lib.optional (!enableUdev) "--disable-udev";
configureFlags = lib.optional (!enableUdev) "--disable-udev";
preFixup = stdenv.lib.optionalString enableUdev ''
sed 's,-ludev,-L${stdenv.lib.getLib udev}/lib -ludev,' -i $out/lib/libusb-1.0.la
preFixup = lib.optionalString enableUdev ''
sed 's,-ludev,-L${lib.getLib udev}/lib -ludev,' -i $out/lib/libusb-1.0.la
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://libusb.info/";
repositories.git = "https://github.com/libusb/libusb";
description = "cross-platform user-mode USB device library";