Skip to content

Commit 3d3b5a1

Browse files
committed
fix: remove darwin options
1 parent 1bc9198 commit 3d3b5a1

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

shell.nix

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,6 @@
33
}:
44
let
55
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-
[ ];
296
in
307
pkgs.stdenv.mkDerivation {
318
name = "registrar";
@@ -69,7 +46,7 @@ pkgs.stdenv.mkDerivation {
6946

7047
# Set Environment Variables
7148
RUST_BACKTRACE = 1;
72-
NIX_LDFLAGS = "-L${(getLibFolder pkgs.libiconv)} ${darwinOptions}";
49+
NIX_LDFLAGS = "-L${(getLibFolder pkgs.libiconv)}";
7350
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
7451
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
7552
(getLibFolder pkgs.gcc)

0 commit comments

Comments
 (0)