File tree Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change 3
3
} :
4
4
let
5
5
getLibFolder = pkg : "${ pkg } /lib" ;
6
- getFramwork = pkg : "${ pkg } /Library/Frameworks" ;
7
- darwinOptions =
8
- if pkgs . stdenv . isDarwin then
9
- ''
10
- -F${ ( getFramwork pkgs . darwin . apple_sdk . frameworks . Security ) }
11
- -F${ ( getFramwork pkgs . darwin . apple_sdk . frameworks . CoreFoundation ) }
12
- -F${ ( getFramwork pkgs . darwin . apple_sdk . frameworks . CoreServices ) }
13
- -F${ ( getFramwork pkgs . darwin . apple_sdk . frameworks . SystemConfiguration ) }
14
- ''
15
- else
16
- "" ;
17
-
18
- darwinPkgs =
19
- if pkgs . stdenv . isDarwin then
20
- with pkgs ;
21
- [
22
- darwin . apple_sdk . frameworks . Security
23
- darwin . apple_sdk . frameworks . CoreServices
24
- darwin . apple_sdk . frameworks . CoreFoundation
25
- darwin . apple_sdk . frameworks . SystemConfiguration
26
- ]
27
- else
28
- [ ] ;
29
6
in
30
7
pkgs . stdenv . mkDerivation {
31
8
name = "registrar" ;
@@ -69,7 +46,7 @@ pkgs.stdenv.mkDerivation {
69
46
70
47
# Set Environment Variables
71
48
RUST_BACKTRACE = 1 ;
72
- NIX_LDFLAGS = "-L${ ( getLibFolder pkgs . libiconv ) } ${ darwinOptions } " ;
49
+ NIX_LDFLAGS = "-L${ ( getLibFolder pkgs . libiconv ) } " ;
73
50
RUST_SRC_PATH = "${ pkgs . rust . packages . stable . rustPlatform . rustLibSrc } " ;
74
51
LD_LIBRARY_PATH = pkgs . lib . makeLibraryPath [
75
52
( getLibFolder pkgs . gcc )
You can’t perform that action at this time.
0 commit comments