2013-02-23 13:00:49 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, udev, dbus_libs, perl }:
|
2011-09-19 14:01:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-08-06 03:25:37 +01:00
|
|
|
name = "pcsclite-1.8.14";
|
2010-01-09 17:35:57 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-08-06 03:25:37 +01:00
|
|
|
url = "https://alioth.debian.org/frs/download.php/file/4138/pcsc-lite-1.8.14.tar.bz2";
|
|
|
|
sha256 = "0kik09dif6hih09vvprd7zvj31lnrclrbrh5y10mlca2c209f7xr";
|
2010-01-09 17:35:57 +00:00
|
|
|
};
|
|
|
|
|
2013-02-23 13:00:49 +00:00
|
|
|
configureFlags = [
|
2015-08-06 03:25:37 +01:00
|
|
|
# The OS should care on preparing the drivers into this location
|
2013-02-23 13:00:49 +00:00
|
|
|
"--enable-usbdropdir=/var/lib/pcsc/drivers"
|
2015-08-06 03:25:37 +01:00
|
|
|
"--with-systemdsystemunitdir=\${out}/etc/systemd/system"
|
|
|
|
"--enable-confdir=/etc"
|
2013-02-23 13:00:49 +00:00
|
|
|
];
|
2010-01-09 17:35:57 +00:00
|
|
|
|
2015-08-06 03:25:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig perl ];
|
|
|
|
buildInputs = [ udev dbus_libs ];
|
2010-01-09 17:35:57 +00:00
|
|
|
|
2014-03-21 21:32:21 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-01-09 17:35:57 +00:00
|
|
|
description = "Middleware to access a smart card using SCard API (PC/SC)";
|
|
|
|
homepage = http://pcsclite.alioth.debian.org/;
|
2014-03-21 21:32:21 +00:00
|
|
|
license = licenses.bsd3;
|
2014-09-15 08:55:47 +01:00
|
|
|
maintainers = with maintainers; [ viric wkennington ];
|
2014-03-21 21:32:21 +00:00
|
|
|
platforms = with platforms; linux;
|
2010-01-09 17:35:57 +00:00
|
|
|
};
|
|
|
|
}
|