-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
46 lines (45 loc) · 1.18 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
parts.url = "github:hercules-ci/flake-parts";
nixpkgs-vet = {
url = "github:NixOS/nixpkgs-vet/0.1.4";
flake = false;
};
};
outputs =
inputs:
inputs.parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
];
perSystem =
{ pkgs, system, ... }:
{
devShells = {
default = pkgs.mkShell {
packages = [
(pkgs.python3.withPackages (ps: [
ps.tree-sitter_0_21
ps.pythonix
]))
pkgs.black
pkgs.nixpkgs-review
(
(import inputs.nixpkgs-vet {
inherit system;
inherit (inputs) nixpkgs;
}).build.overrideAttrs
# cannot pass check?
{ doCheck = false; }
)
];
shellHook = ''
export NIX_TREE_SITTER=${pkgs.tree-sitter-grammars.tree-sitter-nix}/parser
'';
};
};
};
};
}