mirror of
https://github.com/beta-nu-theta-chi/big-brother-tree.git
synced 2025-12-01 00:24:47 +00:00
49 lines
1.3 KiB
Nix
49 lines
1.3 KiB
Nix
{
|
|
inputs = {
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
treefmt-nix.url = "github:numtide/treefmt-nix";
|
|
gitignore.url = "github:hercules-ci/gitignore.nix";
|
|
};
|
|
outputs = {...} @ inputs:
|
|
inputs.flake-utils.lib.eachDefaultSystem (
|
|
system: let
|
|
pkgs = (import inputs.nixpkgs) {
|
|
inherit system;
|
|
config = {
|
|
};
|
|
};
|
|
in {
|
|
devShells = rec {
|
|
dot = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
graphviz-nox
|
|
];
|
|
};
|
|
default = dot;
|
|
};
|
|
formatter = let
|
|
treefmtconfig = inputs.treefmt-nix.lib.evalModule pkgs {
|
|
projectRootFile = "flake.nix";
|
|
programs = {
|
|
toml-sort.enable = true;
|
|
yamlfmt.enable = true;
|
|
mdformat.enable = true;
|
|
prettier.enable = true;
|
|
shellcheck.enable = true;
|
|
shfmt.enable = true;
|
|
};
|
|
settings.formatter.shellcheck.excludes = [".envrc"];
|
|
};
|
|
in
|
|
treefmtconfig.config.build.wrapper;
|
|
apps = rec {
|
|
};
|
|
packages = rec {
|
|
graphs = pkgs.callPackage ./nix/build.nix { };
|
|
default = graphs;
|
|
};
|
|
}
|
|
);
|
|
}
|