2015-03-03 22:19:02 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, pcsclite, libusb
|
|
|
|
, doxygen, libxslt
|
|
|
|
}:
|
2010-01-10 00:22:29 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-03-03 22:19:02 +00:00
|
|
|
name = "openct-${version}";
|
|
|
|
version = "0.6.20";
|
2010-01-10 00:22:29 +00:00
|
|
|
|
2015-03-03 22:19:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenSC";
|
|
|
|
repo = "openct";
|
|
|
|
rev = name;
|
|
|
|
sha256 = "09wxq0jxdxhci3zr7jd3zcxjkl3j0r1v00k3q8gqrg9gighh8nk2";
|
2010-01-10 00:22:29 +00:00
|
|
|
};
|
2015-03-03 22:19:02 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's,$(DESTDIR),$(out),g' etc/Makefile.am
|
|
|
|
'';
|
2010-01-10 00:22:29 +00:00
|
|
|
|
2015-03-03 22:19:02 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-api-doc"
|
|
|
|
"--enable-usb"
|
|
|
|
"--enable-pcsc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ autoreconfHook pkgconfig pcsclite libusb doxygen libxslt ];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/etc
|
|
|
|
'';
|
2010-01-10 00:22:29 +00:00
|
|
|
|
2015-03-03 22:19:02 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/OpenSC/openct/;
|
|
|
|
license = licenses.lgpl21;
|
2010-01-10 00:22:29 +00:00
|
|
|
description = "Drivers for several smart card readers";
|
2015-03-03 22:19:02 +00:00
|
|
|
maintainers = with maintainers; [ viric wkennington ];
|
|
|
|
platforms = platforms.all;
|
2010-01-10 00:22:29 +00:00
|
|
|
};
|
|
|
|
}
|