2013-02-23 13:00:49 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, udev, dbus_libs, perl }:
|
2011-09-19 13:01:47 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-01-25 22:51:09 +00:00
|
|
|
version = "1.8.10";
|
|
|
|
name = "pcsclite-${version}";
|
2010-01-09 17:35:57 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-03-13 22:39:07 +00:00
|
|
|
url = "https://alioth.debian.org/frs/download.php/file/3963/pcsc-lite-${version}.tar.bz2";
|
2014-01-25 22:51:09 +00:00
|
|
|
sha256 = "04i63zi9ayg38z3cahp6gf3rgx23w17bmcpdccm2hvaj63blnz30";
|
2010-01-09 17:35:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# The OS should care on preparing the drivers into this location
|
2013-02-23 13:00:49 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-usbdropdir=/var/lib/pcsc/drivers"
|
2014-03-22 12:34:28 +00:00
|
|
|
"--with-systemdsystemunitdir=$out/etc/systemd/system"
|
|
|
|
"--enable-confdir=$out/etc"
|
2013-02-23 13:00:49 +00:00
|
|
|
];
|
2010-01-09 17:35:57 +00:00
|
|
|
|
2013-02-23 13:00:49 +00:00
|
|
|
buildInputs = [ udev dbus_libs perl ];
|
2011-09-19 13:01:47 +00:00
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2010-01-09 17:35:57 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Middleware to access a smart card using SCard API (PC/SC)";
|
|
|
|
homepage = http://pcsclite.alioth.debian.org/;
|
|
|
|
license = "BSD";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|