Skip to content

Commit

Permalink
Merge pull request #92300 from marsam/fix-libdigidoc-darwin
Browse files Browse the repository at this point in the history
libdigidoc: enable on darwin
  • Loading branch information
marsam committed Jul 5, 2020
2 parents 77ffd8d + 52987ec commit c93e159
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 7 additions & 4 deletions pkgs/development/libraries/libdigidoc/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, openssl, pcsclite, opensc, libxml2 }:
{ stdenv, fetchurl, cmake, openssl, pcsclite, opensc, libxml2, Security }:

stdenv.mkDerivation rec {

Expand All @@ -12,13 +12,16 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ cmake ];

buildInputs = [ openssl pcsclite opensc libxml2 ];
buildInputs = [ openssl pcsclite opensc libxml2 ]
++ stdenv.lib.optionals stdenv.isDarwin [ Security ];

cmakeFlags = stdenv.lib.optionals stdenv.isDarwin [ "-DFRAMEWORK=OFF" ];

meta = with stdenv.lib; {
description = "Library for creating DigiDoc signature files";
homepage = "http://www.id.ee/";
homepage = "https://github.com/open-eid/libdigidoc";
license = licenses.lgpl2;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = [ maintainers.jagajaga ];
};
}
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12901,7 +12901,9 @@ in
libGL = null;
};

libdigidoc = callPackage ../development/libraries/libdigidoc { };
libdigidoc = callPackage ../development/libraries/libdigidoc {
inherit (darwin.apple_sdk.frameworks) Security;
};

libdigidocpp = callPackage ../development/libraries/libdigidocpp { };

Expand Down

0 comments on commit c93e159

Please sign in to comment.