Skip to content

Commit

Permalink
feat(nix): add .envrc files
Browse files Browse the repository at this point in the history
  • Loading branch information
W95Psp committed Jan 18, 2024
1 parent 6301d94 commit c8198a0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ target/
**/*.rs.bk
node_modules
TODO.org
.envrc
.direnv
_build
result
Expand Down
1 change: 1 addition & 0 deletions examples/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake .#fstar
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

First, make sure to have hax installed in PATH. Then:

* With Nix, `nix develop .#fstar-examples` setups a shell automatically for you.
* With Nix, `nix develop .#fstar` setups a shell automatically for you.

* Without Nix:
1. install F* `v2023.09.03` manually (see https://github.com/FStarLang/FStar/blob/master/INSTALL.md);
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
];
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
in {
fstar-examples = pkgs.mkShell {
fstar = pkgs.mkShell {
inherit inputsFrom LIBCLANG_PATH;
HACL_HOME = "${hacl-star}";
packages = packages ++ [fstar];
Expand Down
1 change: 1 addition & 0 deletions proof-libs/fstar/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake .#fstar

0 comments on commit c8198a0

Please sign in to comment.