Adding OpenSC, a pkcs11 interface to smartcards.
svn path=/nixpkgs/trunk/; revision=19322
This commit is contained in:
parent
abffb0bdcb
commit
e657b30a51
23
pkgs/tools/security/opensc/default.nix
Normal file
23
pkgs/tools/security/opensc/default.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{stdenv, fetchurl, libtool, readline, zlib, openssl, libiconv, pcsclite, libassuan, pkgconfig,
|
||||
libXt }:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "opensc-0.11.12";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.opensc-project.org/files/opensc/${name}.tar.gz";
|
||||
sha256 = "0zr04qadk9gsabmhnwmk27kb4zgfpy988nwa9s1k3hc3hn3gls3a";
|
||||
};
|
||||
|
||||
configureFlags = [ "--enable-pcsc" "--enable-nsplugin" ];
|
||||
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;
|
||||
};
|
||||
}
|
@ -1162,6 +1162,12 @@ let
|
||||
inherit fetchurl stdenv pkgconfig bluez libusb;
|
||||
};
|
||||
|
||||
opensc = import ../tools/security/opensc {
|
||||
inherit fetchurl stdenv libtool readline zlib openssl libiconv pcsclite
|
||||
libassuan pkgconfig;
|
||||
inherit (xlibs) libXt;
|
||||
};
|
||||
|
||||
openssh = import ../tools/networking/openssh {
|
||||
inherit fetchurl stdenv zlib openssl pam perl;
|
||||
pamSupport = getPkgConfig "openssh" "pam" true;
|
||||
|
Loading…
Reference in New Issue
Block a user