Skip to content

Commit

Permalink
Add zarith_stubs_js v0.17.0 in nix-shell (#1233)
Browse files Browse the repository at this point in the history
Some primitives have been added in the latest version of
`zarith_stubs_js` and we need them for the js version of Alt-Ergo.
  • Loading branch information
Halbaroth authored Sep 13, 2024
1 parent d99264b commit 5e9eae4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import sources.nixpkgs {
dolmen_loop = pkgs.callPackage ./dolmen_loop.nix { };
landmarks = pkgs.callPackage ./landmarks.nix { };
landmarks-ppx = pkgs.callPackage ./landmarks-ppx.nix { };
zarith_stubs_js = pkgs.callPackage ./zarith_stubs_js.nix { };
});
})
];
Expand Down
8 changes: 8 additions & 0 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,13 @@
"url": "https://github.com/Armael/pp_loc/archive/d8162fd289849ea2f4125054ab88540416bdaa25.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz",
"version": "2.1.0"
},
"zarith_stubs_js": {
"branch": "v0.17.0",
"sha256": "07anr6r4chbpgd7c5ixfqgqr99kb202bd7q350hdqynrn7v6rn20",
"type": "tarball",
"url": "https://github.com/janestreet/zarith_stubs_js/archive/refs/tags/v0.17.0.tar.gz",
"url_template": "https://github.com/janestreet/zarith_stubs_js/archive/refs/tags/v0.17.0.tar.gz",
"version": "0.17.0"
}
}
16 changes: 16 additions & 0 deletions nix/zarith_stubs_js.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{ sources, lib, ocamlPackages }:

let
zarith_stubs_js = sources.zarith_stubs_js;
in

ocamlPackages.buildDunePackage {
strictDeps = true;
pname = "zarith_stubs_js";
inherit (zarith_stubs_js) version;

minimalOCamlVersion = "4.08";
duneVersion = "3";

src = zarith_stubs_js;
}

0 comments on commit 5e9eae4

Please sign in to comment.