diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libftdi/1.x.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libftdi/1.x.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libftdi/1.x.nix b/nixpkgs/pkgs/development/libraries/libftdi/1.x.nix index 0e2e24d0f3b4..ae599a97529b 100644 --- a/nixpkgs/pkgs/development/libraries/libftdi/1.x.nix +++ b/nixpkgs/pkgs/development/libraries/libftdi/1.x.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, cmake, pkgconfig, libusb1, libconfuse +{ lib, stdenv, fetchurl, cmake, pkg-config, libusb1, libconfuse , cppSupport ? true, boost ? null , pythonSupport ? true, python3 ? null, swig ? null , docSupport ? true, doxygen ? null @@ -16,13 +16,13 @@ stdenv.mkDerivation rec { sha256 = "0x0vncf6i92slgrn0h7ghkskqbglbs534220qa84d0qg114zndpc"; }; - nativeBuildInputs = [ cmake pkgconfig ]; - buildInputs = with stdenv.lib; [ libconfuse ] + nativeBuildInputs = [ cmake pkg-config ]; + 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 ]; |