soci: fix darwin build

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
This commit is contained in:
Philipp Baumann 2023-12-21 20:00:37 +01:00 committed by Weijia Wang
parent 490828bce1
commit c1a504fbdb

View file

@ -4,9 +4,12 @@
, sqlite , sqlite
, postgresql , postgresql
, boost , boost
, darwin
, lib, stdenv , lib, stdenv
}: }:
let
inherit (darwin.apple_sdk_11_0.frameworks) Kerberos;
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "soci"; pname = "soci";
version = "4.0.2"; version = "4.0.2";
@ -34,6 +37,8 @@ stdenv.mkDerivation rec {
sqlite sqlite
postgresql postgresql
boost boost
] ++ lib.optionals stdenv.isDarwin [
Kerberos
]; ];
meta = with lib; { meta = with lib; {