File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
{ pkgs ? import ./nixpkgs { } , docTools ? true , ghcVersion ? "9.2.8" } :
2
2
3
3
with pkgs ;
4
+
5
+ let
6
+ macOS-security =
7
+ # make `/usr/bin/security` available in `PATH`, which is needed for stack
8
+ # on darwin which calls this binary to find certificates
9
+ writeScriptBin "security" ''exec /usr/bin/security "$@"'' ;
10
+ in
4
11
mkShell {
5
12
# XXX: hack for macosX, this flags disable bazel usage of xcode
6
13
# Note: this is set even for linux so any regression introduced by this flag
@@ -36,7 +43,9 @@ mkShell {
36
43
# check the start script for problems
37
44
shellcheck
38
45
file
39
- ] ++ lib . optionals docTools [ graphviz python39Packages . sphinx zip unzip ] ;
46
+ ]
47
+ ++ lib . optionals docTools [ graphviz python39Packages . sphinx zip unzip ]
48
+ ++ lib . optional stdenv . isDarwin macOS-security ;
40
49
41
50
packages = [ bazel_6 ] ;
42
51
You can’t perform that action at this time.
0 commit comments