Skip to content

Commit

Permalink
chore: switch to nix-ocaml
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrinberg committed Sep 25, 2024
1 parent 85e0336 commit 6400eb9
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .ocamlformat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version=0.26.1
version=0.26.2
profile=janestreet
ocaml-version=4.08.0
4 changes: 4 additions & 0 deletions benchmarks/dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
(env
(dev
(flags (:standard -w -58))))

(executables
(libraries re core base stdio threads core_bench core_unix.command_unix)
(names benchmark))
63 changes: 58 additions & 5 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

inputs.nix-filter.url = "github:numtide/nix-filter";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:nixos/nixpkgs";
inputs.nixpkgs.url = "github:nix-ocaml/nix-overlays";

outputs = { self, nixpkgs, flake-utils, nix-filter }:
flake-utils.lib.eachDefaultSystem (system:
Expand All @@ -26,7 +26,7 @@
};
devShells.default = pkgs.mkShell {
inputsFrom = pkgs.lib.attrValues packages;
buildInputs = with pkgs.ocamlPackages; [ ocaml-lsp core_bench pkgs.ocamlformat_0_26_1 ];
buildInputs = with pkgs.ocamlPackages; [ ocaml-lsp core_bench pkgs.ocamlformat_0_26_2 ];
};
});
}

0 comments on commit 6400eb9

Please sign in to comment.