3
0
Fork 0
forked from mirrors/nixpkgs

bacula: fix build on darwin (#101526)

This commit is contained in:
r-burns 2020-10-24 21:04:37 -07:00 committed by GitHub
parent 1e03f690bb
commit 4e88622ac9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View file

@ -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;

View file

@ -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 { };