Adding engine_pkcs11, a openssl engine for pkcs11 implementations for smartcards.
[nixpkgs-libre.git] / pkgs / tools / security / opensc / default.nix
blob1ee94066905c53401d7a16d9a8edb043cd763733
1 {stdenv, fetchurl, libtool, readline, zlib, openssl, libiconv, pcsclite, libassuan, pkgconfig,
2 libXt }:
3 stdenv.mkDerivation rec {
4   name = "opensc-0.11.12";
6   src = fetchurl {
7     url = "http://www.opensc-project.org/files/opensc/${name}.tar.gz";
8     sha256 = "0zr04qadk9gsabmhnwmk27kb4zgfpy988nwa9s1k3hc3hn3gls3a";
9   };
11   configureFlags = [ "--enable-pcsc" "--enable-nsplugin"
12     "--with-pcsc-provider=${pcsclite}/lib/libpcsclite.so.1" ];
13   buildInputs = [ libtool readline zlib openssl pcsclite libassuan pkgconfig
14     libXt ] ++
15     stdenv.lib.optional (! stdenv.isLinux) libiconv;
17   meta = {
18     description = "Set of libraries and utilities to access smart cards";
19     homepage = http://www.opensc-project.org/opensc/;
20     license = "LGPL";
21     maintainers = with stdenv.lib.maintainers; [viric];
22     platforms = with stdenv.lib.platforms; linux;
23   };