Skip to content

Commit

Permalink
chore(nix): add experimental binaries with features enabled
Browse files Browse the repository at this point in the history
Use `overrideAttrs` to change the behaviour and export
new target `dune-experimental` and `dune-static-experimental`

Co-authored-by: Etienne Millon <me@emillon.org>

Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
Signed-off-by: Etienne Marais <dev@maiste.fr>
Signed-off-by: Etienne Millon <me@emillon.org>
  • Loading branch information
gridbugs authored and maiste committed Sep 3, 2024
1 parent f034d16 commit 0f28f28
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@
dune-static-overlay
];

add-experimental-configure-flags = pkg: pkg.overrideAttrs {
configureFlags =
[
"--enable-toolchains"
"--enable-pkg-build-progress"
];
};

ocamlformat =
let
ocamlformat_version =
Expand Down Expand Up @@ -102,6 +110,8 @@
};
dune = self.packages.${system}.default;
dune-static = pkgs-static.pkgsCross.musl64.ocamlPackages.dune;
dune-experimental = add-experimental-configure-flags self.packages.${system}.dune;
dune-static-experimental = add-experimental-configure-flags self.packages.${system}.dune-static;
};

devShells =
Expand Down

0 comments on commit 0f28f28

Please sign in to comment.