2010-01-09 22:52:31 +01:00
|
|
|
{stdenv, fetchurl, libtool, readline, zlib, openssl, libiconv, pcsclite, libassuan, pkgconfig,
|
2010-01-14 23:47:30 +01:00
|
|
|
libXt, pinentry}:
|
2010-01-10 01:22:29 +01:00
|
|
|
|
2010-01-09 22:52:31 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2010-01-10 01:22:29 +01:00
|
|
|
name = "opensc-0.11.7";
|
2010-01-09 22:52:31 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.opensc-project.org/files/opensc/${name}.tar.gz";
|
2010-01-10 01:22:29 +01:00
|
|
|
sha256 = "0781qi0bsm01wdhkb1vd3ra9wkwgyjcm2w87jb2r53msply2gavd";
|
2010-01-09 22:52:31 +01:00
|
|
|
};
|
|
|
|
|
2010-01-09 23:06:44 +01:00
|
|
|
configureFlags = [ "--enable-pcsc" "--enable-nsplugin"
|
2010-01-14 23:47:30 +01:00
|
|
|
"--with-pcsc-provider=${pcsclite}/lib/libpcsclite.so.1"
|
|
|
|
"--with-pinentry=${pinentry}/bin/pinentry" ];
|
2010-01-10 01:22:29 +01:00
|
|
|
|
2010-01-09 22:52:31 +01:00
|
|
|
buildInputs = [ libtool readline zlib openssl pcsclite libassuan pkgconfig
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|