pkgs/development/libraries: stdenv.lib -> lib
This commit is contained in:
committed by
Jonathan Ringer
parent
046d24424e
commit
66e44425c6
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, cmake, pkg-config, libusb1, libconfuse
|
||||
{ lib, stdenv, fetchurl, cmake, pkg-config, libusb1, libconfuse
|
||||
, cppSupport ? true, boost ? null
|
||||
, pythonSupport ? true, python3 ? null, swig ? null
|
||||
, docSupport ? true, doxygen ? null
|
||||
@@ -17,12 +17,12 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
buildInputs = with stdenv.lib; [ libconfuse ]
|
||||
buildInputs = with lib; [ libconfuse ]
|
||||
++ optionals cppSupport [ boost ]
|
||||
++ optionals pythonSupport [ python3 swig ]
|
||||
++ optionals docSupport [ doxygen ];
|
||||
|
||||
preBuild = stdenv.lib.optionalString docSupport ''
|
||||
preBuild = lib.optionalString docSupport ''
|
||||
make doc_i
|
||||
'';
|
||||
|
||||
@@ -32,12 +32,12 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p "$out/etc/udev/rules.d/"
|
||||
cp ../packages/99-libftdi.rules "$out/etc/udev/rules.d/"
|
||||
cp -r doc/man "$out/share/"
|
||||
'' + stdenv.lib.optionalString docSupport ''
|
||||
'' + lib.optionalString docSupport ''
|
||||
mkdir -p "$out/share/libftdi/doc/"
|
||||
cp -r doc/html "$out/share/libftdi/doc/"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A library to talk to FTDI chips using libusb";
|
||||
homepage = "https://www.intra2net.com/en/developer/libftdi/";
|
||||
license = with licenses; [ lgpl2 gpl2 ];
|
||||
|
||||
Reference in New Issue
Block a user