-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fstar: build with dune #275924
fstar: build with dune #275924
Conversation
@pnmadelaine Thanks for fixing this! I've just tried this PR and F* builds correctly for me and seems to work fine. However, I am running into one issue. I have a tiny F* program which gets extracted to OCaml and builds fine when using PR #275889 but fails to build with this PR unless I apply the following patch to my program's diff --git a/default.nix b/default.nix
index 7a8e9c7..49b7c49 100644
--- a/default.nix
+++ b/default.nix
@@ -25,6 +25,18 @@ stdenv.mkDerivation {
nativeBuildInputs = with ocamlPackages; [ findlib fstar ocaml ocamlbuild tup z3_4_8_5 ];
+ buildInputs = with ocamlPackages; [
+ batteries
+ menhirLib
+ pprint
+ process
+ ppx_deriving
+ ppx_deriving_yojson
+ sedlex
+ stdint
+ zarith
+ ];
+
installPhase = ''
mkdir -p $out/bin The issue is that This is normally fixed by moving these libraries in the However, since in this case the |
@someplaceguy thanks for testing this! |
Just noticed some things in |
I agree it's not too awkward. I just tried your latest changes (including the Many thanks! 🎉 |
Description of changes
Build F* with Dune, reflecting changes to the F* build process from a few months ago.
This splits the build into three derivations, one for the F* binary, one for the library and one for the complete package.
Should fix #275866
cc @W95Psp who helped rework the F* flake, does this look good to you?
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.