Skip to content

Commit

Permalink
Fix instatiate mkcert env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
David Arnold committed Oct 13, 2020
1 parent aec937b commit ebf8439
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extensions/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let
package = pkgs.mkcert;
command = ''
echo "$(tput bold)Installing ${name}'s dev CA into local trust stores via mkcert command ...$(tput sgr0)"
export CAROOT=${dev-ca-path}
export CAROOT=$DEVSHELL_ROOT${dev-ca-path}
${pkgs.mkcert}/bin/mkcert -install
'';
};
Expand All @@ -27,7 +27,7 @@ let
package = pkgs.mkcert;
command = ''
echo "$(tput bold)Purging ${name}'s dev CA from local trust stores via mkcert command ...$(tput sgr0)"
export CAROOT=${dev-ca-path}
export CAROOT=$DEVSHELL_ROOT${dev-ca-path}
${pkgs.mkcert}/bin/mkcert -uninstall
'';
};
Expand Down Expand Up @@ -116,4 +116,5 @@ in
else [ installProjectCA uninstallProjectCA ]
);
};
bash.extra = "export CAROOT=$DEVSHELL_ROOT/${dev-ca-path}";
}

0 comments on commit ebf8439

Please sign in to comment.