Skip to content

Commit

Permalink
chore: update flake
Browse files Browse the repository at this point in the history
  • Loading branch information
selfuryon committed Nov 8, 2023
1 parent 4ea31f0 commit 6294f19
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 45 deletions.
46 changes: 15 additions & 31 deletions flake.lock

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

16 changes: 2 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# url = "github:hercules-ci/pre-commit-hooks.nix/flakeModule";
# inputs.nixpkgs.follows = "nixpkgs";
# };
mission-control.url = "github:Platonic-Systems/mission-control";

# utils
treefmt-nix = {
Expand All @@ -37,7 +36,6 @@
{
imports = [
inputs.flake-root.flakeModule
inputs.mission-control.flakeModule
inputs.treefmt-nix.flakeModule
];
systems = ["x86_64-linux"];
Expand All @@ -49,14 +47,13 @@
inputs',
...
}: let
inherit (config.mission-control) installToDevShell;
inherit (pkgs) mkShellNoCC;
in {
devShells.default = installToDevShell (mkShellNoCC {
devShells.default = mkShellNoCC {
packages = with pkgs; [
shellcheck
];
});
};
treefmt.config = {
inherit (config.flake-root) projectRootFile;
package = pkgs.treefmt;
Expand All @@ -68,15 +65,6 @@
};

formatter = config.treefmt.build.wrapper;
mission-control = {
scripts = {
fmt = {
category = "Tools";
description = "Format the source tree";
exec = "${lib.getExe config.treefmt.build.wrapper}";
};
};
};
};
};
}

0 comments on commit 6294f19

Please sign in to comment.