opensc: 0.13.0 -> 0.14.0

This commit is contained in:
William A. Kennington III 2015-03-03 14:27:19 -08:00
parent d6ed3570b0
commit 4db81f081b

View File

@ -1,36 +1,46 @@
{ stdenv, fetchurl, libtool, readline, zlib, openssl, libiconv, pcsclite { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, zlib, readline, openssl
, libassuan1, pkgconfig, libXt, docbook_xsl, libxslt, docbook_xml_dtd_412 , libiconv, pcsclite, libassuan1, libXt
, docbook_xsl, libxslt, docbook_xml_dtd_412
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "opensc-0.13.0"; name = "opensc-${version}";
version = "0.14.0";
src = fetchurl { src = fetchFromGitHub {
url = "mirror://sourceforge/opensc/${name}.tar.gz"; owner = "OpenSC";
sha256 = "054v11yc2lqlfqs556liw18klhkx9zyjylqcwirk4axiafp4dpmb"; repo = "OpenSC";
rev = version;
sha256 = "02q3rndcfd7lga1ph0xcl556rgigzpp9bpwqyn42rfbx8lll7gzv";
}; };
buildInputs = [ libtool readline zlib openssl pcsclite libassuan1 pkgconfig postPatch = ''
sed -i 's,$(DESTDIR),$(out),g' etc/Makefile.am
'';
buildInputs = [
autoreconfHook pkgconfig zlib readline openssl pcsclite libassuan1
libXt libxslt libiconv docbook_xml_dtd_412 libXt libxslt libiconv docbook_xml_dtd_412
]; ];
configureFlags = [ configureFlags = [
"--enable-doc" "--enable-zlib"
"--enable-man" "--enable-readline"
"--enable-openssl" "--enable-openssl"
"--enable-pcsc" "--enable-pcsc"
"--enable-readline"
"--enable-sm" "--enable-sm"
"--enable-zlib" "--enable-man"
"--with-pcsc-provider=${pcsclite}/lib/libpcsclite.so.1" "--enable-doc"
"--localstatedir=/var"
"--sysconfdir=/etc"
"--with-xsl-stylesheetsdir=${docbook_xsl}/xml/xsl/docbook" "--with-xsl-stylesheetsdir=${docbook_xsl}/xml/xsl/docbook"
]; ];
meta = { meta = with stdenv.lib; {
description = "Set of libraries and utilities to access smart cards"; description = "Set of libraries and utilities to access smart cards";
homepage = "https://github.com/OpenSC/OpenSC/wiki"; homepage = https://github.com/OpenSC/OpenSC/wiki;
license = stdenv.lib.licenses.lgpl21Plus; license = licenses.lgpl21Plus;
maintainers = with stdenv.lib.maintainers; [viric]; maintainers = with maintainers; [ viric wkennington ];
platforms = with stdenv.lib.platforms; linux; platforms = platforms.all;
}; };
} }