-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
39 lines (37 loc) 路 1.11 KB
/
Copy pathflake.nix
File metadata and controls
39 lines (37 loc) 路 1.11 KB
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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
roc.url = "github:roc-lang/roc?tag=0.0.0-alpha2-rolling";
};
nixConfig = {
extra-trusted-public-keys = "roc-lang.cachix.org-1:6lZeqLP9SadjmUbskJAvcdGR2T5ViR57pDVkxJQb8R4=";
extra-trusted-substituters = "https://roc-lang.cachix.org";
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux"];
perSystem = {
inputs',
pkgs,
...
}: {
devShells.default = pkgs.mkShell {
name = "roc-math";
packages = [
inputs'.roc.packages.cli
pkgs.actionlint
pkgs.alejandra
pkgs.fd
pkgs.just
pkgs.nodePackages.prettier
pkgs.pre-commit
pkgs.python312Packages.pre-commit-hooks
pkgs.ratchet
];
enterShell = "pre-commit install --overwrite";
};
formatter = pkgs.alejandra;
};
};
}