lol

pcsclite: Enable building on Darwin

+4 -4
+4 -4
pkgs/tools/security/pcsclite/default.nix
··· 11 11 configureFlags = [ 12 12 # The OS should care on preparing the drivers into this location 13 13 "--enable-usbdropdir=/var/lib/pcsc/drivers" 14 - "--with-systemdsystemunitdir=\${out}/etc/systemd/system" 15 14 "--enable-confdir=/etc" 16 - ]; 15 + ] ++ stdenv.lib.optional stdenv.isLinux 16 + "--with-systemdsystemunitdir=\${out}/etc/systemd/system"; 17 17 18 18 nativeBuildInputs = [ pkgconfig perl python2 ]; 19 - buildInputs = [ udev dbus_libs ]; 19 + buildInputs = stdenv.lib.optionals stdenv.isLinux [ udev dbus_libs ]; 20 20 21 21 meta = with stdenv.lib; { 22 22 description = "Middleware to access a smart card using SCard API (PC/SC)"; 23 23 homepage = http://pcsclite.alioth.debian.org/; 24 24 license = licenses.bsd3; 25 25 maintainers = with maintainers; [ viric wkennington ]; 26 - platforms = platforms.linux; 26 + platforms = with platforms; unix; 27 27 }; 28 28 }