2010-05-19 21:59:15 +01:00
|
|
|
{stdenv, fetchurl, libtool, readline, zlib, openssl, libiconv, pcsclite,
|
|
|
|
libassuan1, pkgconfig, libXt, pinentry}:
|
2010-01-10 00:22:29 +00:00
|
|
|
|
2010-01-09 21:52:31 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2010-01-10 00:22:29 +00:00
|
|
|
name = "opensc-0.11.7";
|
2010-01-09 21:52:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.opensc-project.org/files/opensc/${name}.tar.gz";
|
2010-01-10 00:22:29 +00:00
|
|
|
sha256 = "0781qi0bsm01wdhkb1vd3ra9wkwgyjcm2w87jb2r53msply2gavd";
|
2010-01-09 21:52:31 +00:00
|
|
|
};
|
|
|
|
|
2010-01-09 22:06:44 +00:00
|
|
|
configureFlags = [ "--enable-pcsc" "--enable-nsplugin"
|
2010-01-14 22:47:30 +00:00
|
|
|
"--with-pcsc-provider=${pcsclite}/lib/libpcsclite.so.1"
|
|
|
|
"--with-pinentry=${pinentry}/bin/pinentry" ];
|
2010-01-10 00:22:29 +00:00
|
|
|
|
2010-05-19 21:59:15 +01:00
|
|
|
buildInputs = [ libtool readline zlib openssl pcsclite libassuan1 pkgconfig
|
2010-01-09 21:52:31 +00:00
|
|
|
libXt ] ++
|
|
|
|
stdenv.lib.optional (! stdenv.isLinux) libiconv;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Set of libraries and utilities to access smart cards";
|
|
|
|
homepage = http://www.opensc-project.org/opensc/;
|
|
|
|
license = "LGPL";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|