-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
49 lines (44 loc) · 1.26 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
{
description = "Epitech Coding Style Checker Language Server";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
vera-clang.url = "github:Sigmapitech/vera-clang";
};
outputs = { nixpkgs, utils, vera-clang, ... }:
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
formatter = pkgs.nixpkgs-fmt;
devShells.default = pkgs.mkShell {
packages = with pkgs; [
python310
banana-vera
black
];
};
packages = rec {
default = ecsls;
ecsls =
let
pypkgs = pkgs.python311Packages;
vera = vera-clang.packages.${system}.vera;
in
pypkgs.buildPythonPackage {
pname = "ecsls";
version = "0.0.1";
src = ./.;
propagatedBuildInputs = [ pypkgs.pygls pypkgs.tomli ];
nativeBuildInputs = with pkgs; [
makeWrapper
];
postFixup = ''
wrapProgram $out/bin/ecsls_run \
--set PATH ${pkgs.lib.makeBinPath ([ vera ])}
'';
};
};
});
}