summary refs log tree commit diff
path: root/pkgs/development/libraries/libftdi
diff options
context:
space:
mode:
authorEmily <vcs@emily.moe>2019-08-20 10:56:45 -0700
committerAustin Seipp <aseipp@pobox.com>2019-08-23 02:14:40 -0500
commit6dba65eebacc4f86533d3510488a9ece798bbd3f (patch)
tree21327bddfd3bf87635f1dc8ae2930ac39908b7f4 /pkgs/development/libraries/libftdi
parent05c54717f850a21fae1362e0e8d49db31f2a843c (diff)
downloadnixpkgs-6dba65eebacc4f86533d3510488a9ece798bbd3f.tar
nixpkgs-6dba65eebacc4f86533d3510488a9ece798bbd3f.tar.gz
nixpkgs-6dba65eebacc4f86533d3510488a9ece798bbd3f.tar.bz2
nixpkgs-6dba65eebacc4f86533d3510488a9ece798bbd3f.tar.lz
nixpkgs-6dba65eebacc4f86533d3510488a9ece798bbd3f.tar.xz
nixpkgs-6dba65eebacc4f86533d3510488a9ece798bbd3f.tar.zst
nixpkgs-6dba65eebacc4f86533d3510488a9ece798bbd3f.zip
libftdi: extend platforms and fix on Darwin
Diffstat (limited to 'pkgs/development/libraries/libftdi')
-rw-r--r--pkgs/development/libraries/libftdi/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/libraries/libftdi/default.nix b/pkgs/development/libraries/libftdi/default.nix
index 74b87a46ef0..08ec1d84a3f 100644
--- a/pkgs/development/libraries/libftdi/default.nix
+++ b/pkgs/development/libraries/libftdi/default.nix
@@ -1,6 +1,6 @@
 {stdenv, fetchurl, libusb}:
 
-stdenv.mkDerivation rec {
+with stdenv; mkDerivation rec {
   name = "libftdi-0.20";
 
   src = fetchurl {
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
 
   # Hack to avoid TMPDIR in RPATHs.
   preFixup = ''rm -rf "$(pwd)" '';
-  configureFlags = [ "--with-async-mode" ];
+  configureFlags = lib.optional (!isDarwin) [ "--with-async-mode" ];
 
   # allow async mode. from ubuntu. see:
   #   https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/libftdi/trusty/view/head:/debian/patches/04_async_mode.diff
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
   meta = {
     description = "A library to talk to FTDI chips using libusb";
     homepage = https://www.intra2net.com/en/developer/libftdi/;
-    license = stdenv.lib.licenses.lgpl21;
-    platforms = stdenv.lib.platforms.linux;
+    license = lib.licenses.lgpl21;
+    platforms = lib.platforms.all;
   };
 }