Skip to content

Commit

Permalink
fix(nix): fix utop tests (#8752)
Browse files Browse the repository at this point in the history
Nix was compressing the man pages for utop which meant the dune-package
file was pointing to non-existant files. Overriding utop and disabling
the compression of man pages fixes this issue.

We can also use this fix for other `(package)` dependencies that are
problematic with nix.

Signed-off-by: Ali Caglayan <[email protected]>
  • Loading branch information
Alizter authored Sep 27, 2023
1 parent af1ffbd commit 843c5e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@
let
pkgs = nixpkgs.legacyPackages.${system}.appendOverlays [
(self: super: {
ocamlPackages = self.ocaml-ng.ocamlPackages_4_14;
ocamlPackages = self.ocaml-ng.ocamlPackages_4_14.overrideScope' (oself: osuper: {
utop = osuper.utop.overrideAttrs {
dontGzipMan = true;
};
});
})
melange.overlays.default
];
Expand Down

0 comments on commit 843c5e5

Please sign in to comment.