From 000e1c7c2273c6f1c9faaafd82c3f716174eec25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sat, 9 Jan 2010 22:22:41 +0000 Subject: [PATCH] Adding engine_pkcs11, a openssl engine for pkcs11 implementations for smartcards. svn path=/nixpkgs/trunk/; revision=19324 --- .../libraries/enginepkcs11/default.nix | 18 ++++++++++++++++++ pkgs/development/libraries/libp11/default.nix | 18 ++++++++++++++++++ pkgs/top-level/all-packages.nix | 8 ++++++++ 3 files changed, 44 insertions(+) create mode 100644 pkgs/development/libraries/enginepkcs11/default.nix create mode 100644 pkgs/development/libraries/libp11/default.nix diff --git a/pkgs/development/libraries/enginepkcs11/default.nix b/pkgs/development/libraries/enginepkcs11/default.nix new file mode 100644 index 000000000000..edd646f94fab --- /dev/null +++ b/pkgs/development/libraries/enginepkcs11/default.nix @@ -0,0 +1,18 @@ +{stdenv, fetchurl, libp11, pkgconfig, openssl}: + +stdenv.mkDerivation rec { + name = "engine_pkcs11-0.1.8"; + + src = fetchurl { + url = "http://www.opensc-project.org/files/engine_pkcs11/${name}.tar.gz"; + sha256 = "1rd20rxy12rfx3kwwvk5sqvc1ll87z60rqak1ksfwbf4wx0pwzfy"; + }; + + buildInputs = [ libp11 pkgconfig openssl ]; + + meta = { + homepage = http://www.opensc-project.org/engine_pkcs11/; + license = "BSD"; + description = "Engine for OpenSSL to use smart cards in PKCS#11 format"; + }; +} diff --git a/pkgs/development/libraries/libp11/default.nix b/pkgs/development/libraries/libp11/default.nix new file mode 100644 index 000000000000..acfca9bf8885 --- /dev/null +++ b/pkgs/development/libraries/libp11/default.nix @@ -0,0 +1,18 @@ +{stdenv, fetchurl, libtool, openssl, pkgconfig}: + +stdenv.mkDerivation rec { + name = "libp11-0.2.7"; + + src = fetchurl { + url = "http://www.opensc-project.org/files/libp11/${name}.tar.gz"; + sha256 = "0kaz5qafaxm0ycywmajl166c29fh9cz89b8i043jqsbxlpzf4hdp"; + }; + + buildInputs = [ libtool openssl pkgconfig ]; + + meta = { + homepage = http://www.opensc-project.org/libp11/; + license = "LGPL"; + description = "Small layer on top of PKCS#11 API to make PKCS#11 implementations easier"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7df3d5b30bc8..fe1905353418 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3265,6 +3265,10 @@ let inherit (gnome) glib; }; + enginepkcs11 = import ../development/libraries/enginepkcs11 { + inherit fetchurl stdenv libp11 pkgconfig openssl; + }; + exiv2 = import ../development/libraries/exiv2 { inherit fetchurl stdenv zlib; }; @@ -4057,6 +4061,10 @@ let inherit fetchurl stdenv libgcrypt; }; + libp11 = import ../development/libraries/libp11 { + inherit fetchurl stdenv libtool openssl pkgconfig; + }; + libpcap = import ../development/libraries/libpcap { inherit fetchurl stdenv flex bison; };