diff --git a/.gitignore b/.gitignore index 7c9d772a8..344feff64 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ *.merlin cache/* Version.ml +/result +/result-* /_opam/ /*.pp.ligo /*.pp.mligo diff --git a/nix/ocaml-overlay.nix b/nix/ocaml-overlay.nix index 8dd971e79..4ff46b20b 100644 --- a/nix/ocaml-overlay.nix +++ b/nix/ocaml-overlay.nix @@ -9,11 +9,12 @@ let inherit (import sources."gitignore.nix" { inherit (self) lib; }) gitignoreSource; # Remove list of directories or files from source (to stop unneeded rebuilds) + # Also, apply the gitignore here. filterOut = xs: - self.lib.cleanSourceWith { + gitignoreSource (self.lib.cleanSourceWith { filter = p: type: !(builtins.elem (builtins.baseNameOf p) xs); src = gitignoreSource ../.; - }; + }); in { ocamlPackages = self.ocaml-ng.ocamlPackages_4_07.overrideScope' (builtins.foldl' self.lib.composeExtensions (_: _: { }) [