Skip to content

Commit

Permalink
Fix ocamlformat-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
vapourismo committed Dec 6, 2024
1 parent 37c42ae commit 698b636
Showing 1 changed file with 25 additions and 16 deletions.
41 changes: 25 additions & 16 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,33 @@
});

localOpamPackages = opamPackages.overrideScope (
final: prev:
prev.repository.select {
packageConstraints = [
"ocaml = 4.14.2"
"dune >= 3.4"
"ocaml-lsp-server"
"ocamlformat"
"utop"
"odoc"
];
pkgs.lib.composeManyExtensions [
(
final: prev:
prev.repository.select {
packageConstraints = [
"ocaml = 4.14.2"
"dune >= 3.4"
"ocaml-lsp-server"
"ocamlformat"
"utop"
"odoc"
];

opams = [
{
name = "opam2nix";
src = self;
opams = [
{
name = "opam2nix";
src = self;
}
];
}
];
}
)
(final: prev: {
ocamlformat-lib = prev.ocamlformat-lib.overrideAttrs (old: {
propagatedBuildInputs = old.propagatedBuildInputs ++ [prev.ocp-indent];
});
})
]
);
in {
packages = {
Expand Down

0 comments on commit 698b636

Please sign in to comment.