summary refs log tree commit diff
path: root/pkgs/tools/security/opensc/default.nix
blob: 31ad1108ddad2501bb306e39a7bc73c56a54acb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ stdenv, fetchurl, libtool, readline, zlib, openssl, libiconv, pcsclite
, libassuan1, pkgconfig, libXt, docbook_xsl, libxslt, docbook_xml_dtd_412
}:

stdenv.mkDerivation rec {
  name = "opensc-0.13.0";

  src = fetchurl {
    url = "mirror://sourceforge/opensc/${name}.tar.gz";
    sha256 = "054v11yc2lqlfqs556liw18klhkx9zyjylqcwirk4axiafp4dpmb";
  };

  buildInputs = [ libtool readline zlib openssl pcsclite libassuan1 pkgconfig
    libXt libxslt libiconv docbook_xml_dtd_412
  ];

  configureFlags = [
    "--enable-doc"
    "--enable-man"
    "--enable-openssl"
    "--enable-pcsc"
    "--enable-readline"
    "--enable-sm"
    "--enable-zlib"
    "--with-pcsc-provider=${pcsclite}/lib/libpcsclite.so.1"
    "--with-xsl-stylesheetsdir=${docbook_xsl}/xml/xsl/docbook"
  ];

  meta = {
    description = "Set of libraries and utilities to access smart cards";
    homepage = "https://github.com/OpenSC/OpenSC/wiki";
    license = stdenv.lib.licenses.lgpl21Plus;
    maintainers = with stdenv.lib.maintainers; [viric];
    platforms = with stdenv.lib.platforms; linux;
  };
}