|
3 | 3 | devenv.inputs.nixpkgs.follows = "nixpkgs";
|
4 | 4 | devenv.url = "github:cachix/devenv";
|
5 | 5 | flake-parts.url = "github:hercules-ci/flake-parts";
|
6 |
| - fstar.url = "github:FStarLang/FStar/a94456863e3f971a7c63a64aca1a07d2cd9eb9a1"; |
| 6 | + fstar.url = "github:FStarLang/FStar/v2025.02.17"; |
7 | 7 | nixpkgs.url = "github:cachix/devenv-nixpkgs/rolling";
|
8 | 8 | treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
|
9 | 9 | treefmt-nix.url = "github:numtide/treefmt-nix";
|
|
36 | 36 | };
|
37 | 37 | };
|
38 | 38 |
|
39 |
| - packages.pulse-dune = pkgs.ocaml-ng.ocamlPackages_4_14.buildDunePackage rec { |
40 |
| - |
41 |
| - pname = "pulse"; |
42 |
| - version = "2024.06.02"; |
43 |
| - sourceRoot = "${src.name}/src/ocaml"; |
44 |
| - |
45 |
| - src = pkgs.fetchFromGitHub { |
46 |
| - owner = "FStarLang"; |
47 |
| - repo = pname; |
48 |
| - rev = "v${version}"; |
49 |
| - hash = "sha256-jRm21FtPorAW/eQlXbqPyo2Ev0Kdv0evvGmSoPpNE7A="; |
50 |
| - }; |
51 |
| - |
52 |
| - inherit (inputs.fstar.packages.${system}.fstar-dune) nativeBuildInputs; |
53 |
| - |
54 |
| - buildInputs = inputs.fstar.packages.${system}.fstar-dune.buildInputs ++ [ inputs.fstar.packages.${system}.fstar-dune ]; |
55 |
| - |
56 |
| - }; |
57 |
| - |
58 | 39 | packages.pulse = pkgs.stdenv.mkDerivation rec {
|
59 | 40 |
|
60 | 41 | pname = "pulse";
|
61 |
| - version = "2024.06.02"; |
| 42 | + version = "84b3fc39e2ba16059408d4df039d4a03efa85b16"; |
62 | 43 |
|
63 | 44 | src = pkgs.fetchFromGitHub {
|
64 | 45 | owner = "FStarLang";
|
65 | 46 | repo = pname;
|
66 |
| - rev = "v${version}"; |
67 |
| - hash = "sha256-jRm21FtPorAW/eQlXbqPyo2Ev0Kdv0evvGmSoPpNE7A="; |
| 47 | + rev = "${version}"; |
| 48 | + hash = "sha256-Cg6z4pbSbPIaU1Jfcw78XVTxqLq5Jt+CajoyxHaeCVo="; |
68 | 49 | };
|
69 | 50 |
|
70 |
| - inherit (inputs.fstar.packages.${system}.fstar-dune) nativeBuildInputs; |
| 51 | + inherit (inputs.fstar.packages.${system}.fstar) nativeBuildInputs; |
71 | 52 |
|
72 |
| - buildInputs = inputs.fstar.packages.${system}.fstar-dune.buildInputs ++ [ |
| 53 | + buildInputs = inputs.fstar.packages.${system}.fstar.buildInputs ++ [ |
73 | 54 | inputs.fstar.packages.${system}.fstar
|
74 | 55 | pkgs.which
|
75 | 56 | ];
|
|
86 | 67 | packages.pulse-exe = pkgs.writeShellScriptBin "pulse.exe" ''
|
87 | 68 | exec ${inputs.fstar.packages.${system}.fstar}/bin/fstar.exe "$1" \
|
88 | 69 | --include ${config.packages.pulse}/lib/pulse \
|
89 |
| - --include ${config.packages.pulse}/lib/pulse/c \ |
90 |
| - --include ${config.packages.pulse}/lib/pulse/core \ |
| 70 | + --include ${config.packages.pulse}/lib/pulse/checker \ |
| 71 | + --include ${config.packages.pulse}/lib/pulse/extraction \ |
91 | 72 | --include ${config.packages.pulse}/lib/pulse/lib \
|
92 |
| - --include ${config.packages.pulse}/lib/pulse/lib/class \ |
93 |
| - --include ${config.packages.pulse}/lib/pulse/lib/ml \ |
94 |
| - --include ${config.packages.pulse}/lib/pulse/lib/pledge \ |
| 73 | + --include ${config.packages.pulse}/lib/pulse/ml \ |
| 74 | + --include ${config.packages.pulse}/lib/pulse/syntax_extension \ |
95 | 75 | --load_cmxs pulse \
|
96 | 76 | "$@"
|
97 | 77 | '';
|
|
102 | 82 | modules = [
|
103 | 83 | {
|
104 | 84 | # https://devenv.sh/reference/options/
|
105 |
| - packages = with inputs.fstar.packages.${system}; [ z3 ] |
106 |
| - ++ fstar-dune.buildInputs |
107 |
| - ++ fstar-dune.nativeBuildInputs; |
| 85 | + packages = with inputs.fstar.packages.${system}; [ z3 ]; |
108 | 86 |
|
| 87 | + env.FSTAR_EXE = "${inputs.fstar.packages.${system}.fstar}/bin/fstar.exe"; |
| 88 | + env.FSTAR_HOME = "${inputs.fstar.packages.${system}.fstar}/lib/fstar"; |
| 89 | + env.PULSE_HOME = "${config.packages.pulse}/lib/pulse"; |
109 | 90 | env.OCAMLPATH = "${inputs.fstar.packages.${system}.fstar}/lib/ocaml/4.14.1/site-lib";
|
110 |
| - env.PULSE_HOME = "."; |
111 | 91 | enterShell = ''
|
112 | 92 | export PATH="${inputs.fstar.packages.${system}.fstar}/bin:$PATH"
|
113 | 93 | '';
|
|
138 | 118 | devenv-up = self.devShells.${system}.default.config.procfileScript;
|
139 | 119 | devenv-test = self.devShells.${system}.default.config.test;
|
140 | 120 |
|
141 |
| - inherit (inputs.fstar.packages.${system}) fstar fstar-dune; |
| 121 | + inherit (inputs.fstar.packages.${system}) fstar; |
142 | 122 | };
|
143 | 123 |
|
144 | 124 | };
|
|
0 commit comments