1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/development/libraries/openct/default.nix
William A. Kennington III d6ed3570b0 openct: 0.6.19 -> 0.6.20
2015-03-03 14:27:49 -08:00

42 lines
944 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"
];
buildInputs = [ autoreconfHook pkgconfig 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; [ viric wkennington ];
platforms = platforms.all;
};
}