forked from mirrors/nixpkgs
bacula: fix build on darwin (#101526)
This commit is contained in:
parent
1e03f690bb
commit
4e88622ac9
|
@ -1,4 +1,6 @@
|
|||
{ stdenv, fetchurl, sqlite, postgresql, zlib, acl, ncurses, openssl, readline }:
|
||||
{ stdenv, fetchurl, sqlite, postgresql, zlib, acl, ncurses, openssl, readline
|
||||
, CoreFoundation, IOKit
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "bacula-9.6.5";
|
||||
|
@ -9,6 +11,10 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
buildInputs = [ postgresql sqlite zlib ncurses openssl readline ]
|
||||
++ stdenv.lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
CoreFoundation
|
||||
IOKit
|
||||
]
|
||||
# acl relies on attr, which I can't get to build on darwin
|
||||
++ stdenv.lib.optional (!stdenv.isDarwin) acl;
|
||||
|
||||
|
|
|
@ -2563,7 +2563,9 @@ in
|
|||
inherit (llvmPackages) openmp;
|
||||
};
|
||||
|
||||
bacula = callPackage ../tools/backup/bacula { };
|
||||
bacula = callPackage ../tools/backup/bacula {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreFoundation IOKit;
|
||||
};
|
||||
|
||||
bareos = callPackage ../tools/backup/bareos { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue