2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, pcsclite, libusb-compat-0_1
|
2015-03-03 22:19:02 +00:00
|
|
|
, doxygen, libxslt
|
|
|
|
}:
|
2010-01-10 00:22:29 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "openct";
|
2015-03-03 22:19:02 +00:00
|
|
|
version = "0.6.20";
|
2019-01-26 10:01:09 +00:00
|
|
|
|
2015-03-03 22:19:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenSC";
|
|
|
|
repo = "openct";
|
2019-08-15 13:41:18 +01:00
|
|
|
rev = "${pname}-${version}";
|
2015-03-03 22:19:02 +00:00
|
|
|
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
|
|
|
|
'';
|
2019-01-26 10:01:09 +00:00
|
|
|
|
2015-03-03 22:19:02 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-api-doc"
|
|
|
|
"--enable-usb"
|
|
|
|
"--enable-pcsc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-28 04:29:39 +01:00
|
|
|
buildInputs = [ pcsclite libusb-compat-0_1 doxygen libxslt ];
|
2015-03-03 22:19:02 +00:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/etc
|
|
|
|
'';
|
2010-01-10 00:22:29 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/OpenSC/openct/";
|
2015-03-03 22:19:02 +00:00
|
|
|
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
|
|
|
platforms = platforms.all;
|
2010-01-10 00:22:29 +00:00
|
|
|
};
|
|
|
|
}
|