-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
43 lines (35 loc) · 1023 Bytes
/
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
{
description = "Print EPITECH's coding style compliance report";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
vera-clang.url = "github:Sigmapitech/vera-clang";
ruleset = {
url = "git+ssh://git@github.com/Epitech/banana-coding-style-checker.git";
flake = false;
};
};
outputs = { nixpkgs, ruleset, flake-utils, vera-clang, ... }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
vera = vera-clang.packages.${system}.vera;
in
rec {
devShell = pkgs.mkShell {
buildInputs = [ vera ];
};
formatter = pkgs.nixpkgs-fmt;
packages = rec {
report = (import ./report.nix pkgs ruleset vera);
default = report;
inherit vera;
};
apps = rec {
report = {
type = "app";
program = "${packages.report}/bin/cs";
};
default = report;
};
});
}