-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
58 lines (53 loc) · 1.54 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
description = "SkyrimSE xEdit Echantment script";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs";
pandoc-bbcode_nexus = {
url = "github:loicreynier/pandoc-bbcode_nexus";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
flake-utils,
nixpkgs,
pre-commit-hooks,
...
} @ inputs: (flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
inherit (inputs.pandoc-bbcode_nexus.packages.${system}) pandoc-bbcode_nexus;
in {
checks = {
pre-commit-check = pre-commit-hooks.lib.${system}.run {
src = ./.;
hooks = {
make_description = {
enable = true;
name = "make-description";
entry = "${pkgs.gnumake}/bin/make description.bbcode";
files = "description.md";
};
alejandra.enable = true;
commitizen.enable = true;
checkmake.enable = true;
deadnix.enable = true;
editorconfig-checker.enable = true;
prettier.enable = true;
statix.enable = true;
typos.enable = true;
};
};
};
devShells.default = pkgs.mkShell {
inherit (self.checks.${system}.pre-commit-check) shellHook;
buildInputs = with pkgs; [
gnumake
zip
pandoc-bbcode_nexus
];
};
}));
}