Skip to content

Commit e343420

Browse files
committed
flake: bump fstar and pulse revision
1 parent 3860478 commit e343420

File tree

2 files changed

+19
-39
lines changed

2 files changed

+19
-39
lines changed

flake.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
devenv.inputs.nixpkgs.follows = "nixpkgs";
44
devenv.url = "github:cachix/devenv";
55
flake-parts.url = "github:hercules-ci/flake-parts";
6-
fstar.url = "github:FStarLang/FStar/a94456863e3f971a7c63a64aca1a07d2cd9eb9a1";
6+
fstar.url = "github:FStarLang/FStar/v2025.02.17";
77
nixpkgs.url = "github:cachix/devenv-nixpkgs/rolling";
88
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
99
treefmt-nix.url = "github:numtide/treefmt-nix";
@@ -36,40 +36,21 @@
3636
};
3737
};
3838

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-
5839
packages.pulse = pkgs.stdenv.mkDerivation rec {
5940

6041
pname = "pulse";
61-
version = "2024.06.02";
42+
version = "84b3fc39e2ba16059408d4df039d4a03efa85b16";
6243

6344
src = pkgs.fetchFromGitHub {
6445
owner = "FStarLang";
6546
repo = pname;
66-
rev = "v${version}";
67-
hash = "sha256-jRm21FtPorAW/eQlXbqPyo2Ev0Kdv0evvGmSoPpNE7A=";
47+
rev = "${version}";
48+
hash = "sha256-Cg6z4pbSbPIaU1Jfcw78XVTxqLq5Jt+CajoyxHaeCVo=";
6849
};
6950

70-
inherit (inputs.fstar.packages.${system}.fstar-dune) nativeBuildInputs;
51+
inherit (inputs.fstar.packages.${system}.fstar) nativeBuildInputs;
7152

72-
buildInputs = inputs.fstar.packages.${system}.fstar-dune.buildInputs ++ [
53+
buildInputs = inputs.fstar.packages.${system}.fstar.buildInputs ++ [
7354
inputs.fstar.packages.${system}.fstar
7455
pkgs.which
7556
];
@@ -86,12 +67,11 @@
8667
packages.pulse-exe = pkgs.writeShellScriptBin "pulse.exe" ''
8768
exec ${inputs.fstar.packages.${system}.fstar}/bin/fstar.exe "$1" \
8869
--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 \
9172
--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 \
9575
--load_cmxs pulse \
9676
"$@"
9777
'';
@@ -102,12 +82,12 @@
10282
modules = [
10383
{
10484
# 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 ];
10886

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";
10990
env.OCAMLPATH = "${inputs.fstar.packages.${system}.fstar}/lib/ocaml/4.14.1/site-lib";
110-
env.PULSE_HOME = ".";
11191
enterShell = ''
11292
export PATH="${inputs.fstar.packages.${system}.fstar}/bin:$PATH"
11393
'';
@@ -138,7 +118,7 @@
138118
devenv-up = self.devShells.${system}.default.config.procfileScript;
139119
devenv-test = self.devShells.${system}.default.config.test;
140120

141-
inherit (inputs.fstar.packages.${system}) fstar fstar-dune;
121+
inherit (inputs.fstar.packages.${system}) fstar;
142122
};
143123

144124
};

0 commit comments

Comments
 (0)