Skip to content

Commit

Permalink
opensc: add darwin frameworks
Browse files Browse the repository at this point in the history
(cherry picked from commit 64bf283)
  • Loading branch information
LnL7 committed Sep 17, 2017
1 parent fe2f16e commit 523fb3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pkgs/tools/security/opensc/default.nix
@@ -1,6 +1,7 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, zlib, readline, openssl
, libiconv, pcsclite, libassuan, libXt
, docbook_xsl, libxslt, docbook_xml_dtd_412
, Carbon
}:

stdenv.mkDerivation rec {
Expand All @@ -17,7 +18,7 @@ stdenv.mkDerivation rec {
buildInputs = [
autoreconfHook pkgconfig zlib readline openssl pcsclite libassuan
libXt libxslt libiconv docbook_xml_dtd_412
];
] ++ stdenv.lib.optional stdenv.isDarwin Carbon;

configureFlags = [
"--enable-zlib"
Expand All @@ -37,8 +38,6 @@ stdenv.mkDerivation rec {
"sysconfdir=$(out)/etc"
];



meta = with stdenv.lib; {
description = "Set of libraries and utilities to access smart cards";
homepage = https://github.com/OpenSC/OpenSC/wiki;
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -3623,7 +3623,9 @@ with pkgs;

openresolv = callPackage ../tools/networking/openresolv { };

opensc = callPackage ../tools/security/opensc { };
opensc = callPackage ../tools/security/opensc {
inherit (darwin.apple_sdk.frameworks) Carbon;
};

openssh =
callPackage ../tools/networking/openssh {
Expand Down

0 comments on commit 523fb3c

Please sign in to comment.