nixpkgs/pkgs/development/libraries/openct/default.nix

42 lines
939 B
Nix
Raw Normal View History

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