mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
66d7126255
Since years I'm not maintaining anything of the list below other than some updates when I needed them for some reason. Other people is doing that maintenance on my behalf so I better take me out but for very few packages. Finally!
43 lines
965 B
Nix
43 lines
965 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, pcsclite, libusb
|
|
, doxygen, libxslt
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "openct-${version}";
|
|
version = "0.6.20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenSC";
|
|
repo = "openct";
|
|
rev = name;
|
|
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";
|
|
maintainers = with maintainers; [ wkennington ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|