Skip to content

Commit

Permalink
Bump topiary to follow latest version (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Niols authored Sep 17, 2023
1 parent 999e9a3 commit 6bcc7a4
Show file tree
Hide file tree
Showing 19 changed files with 1,171 additions and 702 deletions.
274 changes: 273 additions & 1 deletion flake.lock

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

11 changes: 8 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs";

flake-parts.url = "github:hercules-ci/flake-parts";

topiary.url = "github:tweag/topiary";
};

outputs = inputs@{ flake-parts, ... }:
Expand All @@ -28,13 +30,14 @@
inputs.pre-commit-hooks.flakeModule
];

perSystem = { self', pkgs, config, ... }: {
perSystem = { self', inputs', pkgs, config, ... }: {
formatter = pkgs.nixfmt;

packages.default = self'.packages.with-nixpkgs;

devShells.default = pkgs.mkShell {
buildInputs = (with pkgs; [ headache topiary ])
buildInputs =
(with pkgs; [ headache inputs'.topiary.packages.default ])
++ (with pkgs.ocamlPackages; [ ocaml-lsp ocp-indent ]);
inputsFrom = [ self'.packages.default ];
shellHook = config.pre-commit.installationScript;
Expand All @@ -47,7 +50,9 @@
dune-opam-sync.enable = true;
opam-lint.enable = true;
checkmake.enable = true;
topiary.enable = true;
topiary-latest = inputs'.topiary.lib.pre-commit-hook // {
types = [ "ocaml" ];
};
};
};

Expand Down
Loading

0 comments on commit 6bcc7a4

Please sign in to comment.