-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
34 lines (28 loc) · 829 Bytes
/
flake.nix
File metadata and controls
34 lines (28 loc) · 829 Bytes
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
{
description = "Epitech Coding Style Checker Language Server";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
vera-clang.url = "github:Sigmapitech/vera-clang";
};
outputs = { self, nixpkgs, vera-clang, ... }: let
forAllSystems = function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
] (system: function nixpkgs.legacyPackages.${system});
in {
devShells.default = forAllSystems (pkgs: pkgs.mkShell {
packages = with pkgs; [
python3
banana-vera
black
];
});
packages = forAllSystems (pkgs: {
default = self.packages.${pkgs.system}.ecsls;
vera = vera-clang.packages.${pkgs.system}.vera;
ecsls = pkgs.python3Packages.callPackage ./ecsls.nix {
inherit (self.packages.${pkgs.system}) vera;
};
});
};
}