From 9314327deef0f91339561c3af34e45b7d0fefcd5 Mon Sep 17 00:00:00 2001 From: squalus Date: Fri, 3 Jan 2020 17:51:39 -0800 Subject: [PATCH] keepassxc: fix darwin build - Removed the unnecessary libmicrohttpd dependency, which doesn't build on macOS. KeepassXC removed this dependency in 2.1.2 - Fixed a compiler error related to the Touch ID feature by adding a dependency on the LocalAuthentication framework --- pkgs/applications/misc/keepassx/community.nix | 9 ++++----- pkgs/os-specific/darwin/apple-sdk/frameworks.nix | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/misc/keepassx/community.nix b/pkgs/applications/misc/keepassx/community.nix index 06fc04ba8fb..bab4c2d0b7d 100644 --- a/pkgs/applications/misc/keepassx/community.nix +++ b/pkgs/applications/misc/keepassx/community.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, cmake, makeWrapper, qttools +{ stdenv, fetchFromGitHub, cmake, makeWrapper, qttools, darwin , curl , glibcLocales @@ -7,7 +7,6 @@ , libargon2 , libgcrypt , libgpgerror -, libmicrohttpd , libsodium , libyubikey , pkg-config @@ -93,7 +92,6 @@ stdenv.mkDerivation rec { libargon2 libgcrypt libgpgerror - libmicrohttpd libsodium libyubikey pkg-config @@ -105,7 +103,8 @@ stdenv.mkDerivation rec { zlib ] ++ stdenv.lib.optional withKeePassKeeShareSecure quazip - ++ stdenv.lib.optional stdenv.isDarwin qtmacextras; + ++ stdenv.lib.optional stdenv.isDarwin qtmacextras + ++ stdenv.lib.optional (stdenv.isDarwin && withKeePassTouchID) darwin.apple_sdk.frameworks.LocalAuthentication; preFixup = optionalString stdenv.isDarwin '' # Make it work without Qt in PATH. @@ -118,6 +117,6 @@ stdenv.mkDerivation rec { homepage = https://keepassxc.org/; license = licenses.gpl2; maintainers = with maintainers; [ jonafato ]; - platforms = with platforms; linux ++ darwin; + platforms = platforms.linux ++ platforms.darwin; }; } diff --git a/pkgs/os-specific/darwin/apple-sdk/frameworks.nix b/pkgs/os-specific/darwin/apple-sdk/frameworks.nix index c803bf42187..b5a378cc6ae 100644 --- a/pkgs/os-specific/darwin/apple-sdk/frameworks.nix +++ b/pkgs/os-specific/darwin/apple-sdk/frameworks.nix @@ -70,6 +70,7 @@ with frameworks; with libs; { Kernel = [ IOKit ]; LDAP = []; LatentSemanticMapping = [ Carbon ]; + LocalAuthentication = []; MapKit = []; MediaAccessibility = [ CoreGraphics CoreText QuartzCore ]; MediaToolbox = [ AudioToolbox AudioUnit CoreMedia ];