-
Notifications
You must be signed in to change notification settings - Fork 0
/
overrides.nix
39 lines (39 loc) · 902 Bytes
/
overrides.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ pkgs }:
{
openssl-sys = {
nativeBuildInputs = with pkgs; [
pkg-config
];
buildInputs = with pkgs; [
openssl.dev
];
propagatedBuildInputs = with pkgs; [
openssl.out
];
};
#openssl = {
# nativeBuildInputs = with pkgs; [
# pkg-config
# ];
# buildInputs = with pkgs; [
# openssl.dev
# ];
#};
} // (if pkgs.stdenv.isDarwin then let
mkFrameworkOverride = f: let
f_ = pkgs.darwin.apple_sdk.frameworks.${f};
in {
propagatedBuildInputs = [ f_ ];
NIX_LDFLAGS = "-F ${f_}/Library/Frameworks";
};
mkLibOverride = l: {
propagatedBuildInputs = [ l ];
NIX_LDFLAGS = "-L ${l}/lib";
};
in {
security-framework-sys = mkFrameworkOverride "Security";
core-foundation-sys = mkFrameworkOverride "CoreFoundation";
pq-sys = mkLibOverride ((pkgs.postgresql.override {
enableSystemd = false;
}).lib);
} else {})