8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
41 lines
917 B
Nix
41 lines
917 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, pcsclite, libusb
|
|
, doxygen, libxslt
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "openct";
|
|
version = "0.6.20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenSC";
|
|
repo = "openct";
|
|
rev = "${pname}-${version}";
|
|
sha256 = "09wxq0jxdxhci3zr7jd3zcxjkl3j0r1v00k3q8gqrg9gighh8nk2";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i 's,$(DESTDIR),$(out),g' etc/Makefile.am
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--enable-api-doc"
|
|
"--enable-usb"
|
|
"--enable-pcsc"
|
|
"--localstatedir=/var"
|
|
"--sysconfdir=/etc"
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
buildInputs = [ pcsclite libusb doxygen libxslt ];
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/etc
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://github.com/OpenSC/openct/";
|
|
license = licenses.lgpl21;
|
|
description = "Drivers for several smart card readers";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|