Skip to content

Commit ebf8439

Browse files
author
David Arnold
committed
Fix instatiate mkcert env variable
1 parent aec937b commit ebf8439

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

extensions/options.nix

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let
1616
package = pkgs.mkcert;
1717
command = ''
1818
echo "$(tput bold)Installing ${name}'s dev CA into local trust stores via mkcert command ...$(tput sgr0)"
19-
export CAROOT=${dev-ca-path}
19+
export CAROOT=$DEVSHELL_ROOT${dev-ca-path}
2020
${pkgs.mkcert}/bin/mkcert -install
2121
'';
2222
};
@@ -27,7 +27,7 @@ let
2727
package = pkgs.mkcert;
2828
command = ''
2929
echo "$(tput bold)Purging ${name}'s dev CA from local trust stores via mkcert command ...$(tput sgr0)"
30-
export CAROOT=${dev-ca-path}
30+
export CAROOT=$DEVSHELL_ROOT${dev-ca-path}
3131
${pkgs.mkcert}/bin/mkcert -uninstall
3232
'';
3333
};
@@ -116,4 +116,5 @@ in
116116
else [ installProjectCA uninstallProjectCA ]
117117
);
118118
};
119+
bash.extra = "export CAROOT=$DEVSHELL_ROOT/${dev-ca-path}";
119120
}

0 commit comments

Comments
 (0)