pcsclite: format, remove ? null from inputs
This commit is contained in:
parent
b5c2e3ffcc
commit
51bf96259e
@ -1,5 +1,4 @@
|
|||||||
{ lib, stdenv, fetchurl, pkg-config, udev, dbus, perl, python3
|
{ lib, stdenv, fetchurl, pkg-config, udev, dbus, perl, python3, IOKit }:
|
||||||
, IOKit ? null }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "pcsclite";
|
pname = "pcsclite";
|
||||||
@ -19,9 +18,9 @@ stdenv.mkDerivation rec {
|
|||||||
"--enable-usbdropdir=/var/lib/pcsc/drivers"
|
"--enable-usbdropdir=/var/lib/pcsc/drivers"
|
||||||
"--enable-confdir=/etc"
|
"--enable-confdir=/etc"
|
||||||
] ++ lib.optional stdenv.isLinux
|
] ++ lib.optional stdenv.isLinux
|
||||||
"--with-systemdsystemunitdir=\${out}/etc/systemd/system"
|
"--with-systemdsystemunitdir=\${out}/etc/systemd/system"
|
||||||
++ lib.optional (!stdenv.isLinux)
|
++ lib.optional (!stdenv.isLinux)
|
||||||
"--disable-libsystemd";
|
"--disable-libsystemd";
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
sed -i -re '/^#define *PCSCLITE_HP_DROPDIR */ {
|
sed -i -re '/^#define *PCSCLITE_HP_DROPDIR */ {
|
||||||
@ -35,8 +34,10 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config perl ];
|
nativeBuildInputs = [ pkg-config perl ];
|
||||||
buildInputs = [ python3 ] ++ lib.optionals stdenv.isLinux [ udev dbus ]
|
|
||||||
++ lib.optionals stdenv.isDarwin [ IOKit ];
|
buildInputs = [ python3 ]
|
||||||
|
++ lib.optionals stdenv.isLinux [ udev dbus ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ IOKit ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Middleware to access a smart card using SCard API (PC/SC)";
|
description = "Middleware to access a smart card using SCard API (PC/SC)";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user