summary refs log tree commit diff
path: root/pkgs/tools/security/pcsclite
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-12-03 13:13:31 -0500
committerJohn Wiegley <johnw@newartisans.com>2015-12-03 13:13:31 -0500
commit95f6a9e147d714edbca0adfba20d1ad82b3237e6 (patch)
treeffa505a94450a42e06c63b3fd7eaf1d815dbbae8 /pkgs/tools/security/pcsclite
parent31e5abf788ce1ab9976259b8c964721a280531b1 (diff)
downloadnixlib-95f6a9e147d714edbca0adfba20d1ad82b3237e6.tar
nixlib-95f6a9e147d714edbca0adfba20d1ad82b3237e6.tar.gz
nixlib-95f6a9e147d714edbca0adfba20d1ad82b3237e6.tar.bz2
nixlib-95f6a9e147d714edbca0adfba20d1ad82b3237e6.tar.lz
nixlib-95f6a9e147d714edbca0adfba20d1ad82b3237e6.tar.xz
nixlib-95f6a9e147d714edbca0adfba20d1ad82b3237e6.tar.zst
nixlib-95f6a9e147d714edbca0adfba20d1ad82b3237e6.zip
pcsclite: Enable building on Darwin
Diffstat (limited to 'pkgs/tools/security/pcsclite')
-rw-r--r--pkgs/tools/security/pcsclite/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/tools/security/pcsclite/default.nix b/pkgs/tools/security/pcsclite/default.nix
index 4c96c947f57a..41c106854351 100644
--- a/pkgs/tools/security/pcsclite/default.nix
+++ b/pkgs/tools/security/pcsclite/default.nix
@@ -11,18 +11,18 @@ stdenv.mkDerivation rec {
   configureFlags = [
     # The OS should care on preparing the drivers into this location
     "--enable-usbdropdir=/var/lib/pcsc/drivers"
-    "--with-systemdsystemunitdir=\${out}/etc/systemd/system"
     "--enable-confdir=/etc"
-  ];
+  ] ++ stdenv.lib.optional stdenv.isLinux
+         "--with-systemdsystemunitdir=\${out}/etc/systemd/system";
 
   nativeBuildInputs = [ pkgconfig perl python2 ];
-  buildInputs = [ udev dbus_libs ];
+  buildInputs = stdenv.lib.optionals stdenv.isLinux [ udev dbus_libs ];
 
   meta = with stdenv.lib; {
     description = "Middleware to access a smart card using SCard API (PC/SC)";
     homepage = http://pcsclite.alioth.debian.org/;
     license = licenses.bsd3;
     maintainers = with maintainers; [ viric wkennington ];
-    platforms = platforms.linux;
+    platforms = with platforms; unix;
   };
 }