mirror of
https://github.com/beta-nu-theta-chi/bylaws.git
synced 2025-12-07 11:44:47 +00:00
68 lines
1.8 KiB
Nix
Executable File
68 lines
1.8 KiB
Nix
Executable File
{
|
|
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 = {
|
|
# allowUnfree = true;
|
|
# allowBroken = true;
|
|
};
|
|
};
|
|
rpkgs = with pkgs.rPackages; [
|
|
stringr
|
|
stringi
|
|
];
|
|
p = with pkgs; [
|
|
podman-compose
|
|
podman
|
|
(quarto.override {
|
|
extraRPackages = rpkgs;
|
|
})
|
|
(rWrapper.override {
|
|
packages = rpkgs;
|
|
})
|
|
texliveFull
|
|
texworks
|
|
texstudio
|
|
];
|
|
in {
|
|
devShells = rec {
|
|
rShell = pkgs.mkShell {
|
|
packages = p;
|
|
};
|
|
default = rShell;
|
|
};
|
|
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"];
|
|
settings.formatter.mdformat.includes = ["*.qmd"];
|
|
};
|
|
in
|
|
treefmtconfig.config.build.wrapper;
|
|
apps = rec {
|
|
};
|
|
packages = rec {
|
|
book = pkgs.callPackage ./build.nix { buildenv = p; };
|
|
deploy = pkgs.callPackage ./deploy.nix { src = book; };
|
|
default = book;
|
|
};
|
|
}
|
|
);
|
|
}
|