-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
executable file
·61 lines (56 loc) · 1.53 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
50
51
52
53
54
55
56
57
58
59
60
61
{
description = "Rflxt On-chain Scripts";
nixConfig = {
bash-prompt = "\\[\\e[0m\\][\\[\\e[0;2m\\]nix \\[\\e[0;1m\\]bet-ref Aiken \\[\\e[0;93m\\]\\w\\[\\e[0m\\]]\\[\\e[0m\\]$ \\[\\e[0m\\]";
cores = "1";
max-jobs = "auto";
auto-optimise-store = "true";
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
aiken = {
type = "github";
owner = "aiken-lang";
repo = "aiken";
};
};
outputs = inputs @ { flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
debug = true;
systems = [ "x86_64-linux" ];
imports = [
inputs.pre-commit-hooks.flakeModule
];
perSystem =
{ config
, inputs'
, pkgs
, ...
}: {
devShells.default =
pkgs.mkShell
{
buildInputs = [
inputs'.aiken.packages.aiken
];
shellHook = config.pre-commit.installationScript;
};
pre-commit.check.enable = true;
pre-commit.settings = {
hooks = {
nixpkgs-fmt.enable = true;
deadnix.enable = true;
aiken = {
enable = true;
name = "aiken";
entry = "aiken fmt";
files = "\\.ak$";
pass_filenames = false;
};
};
};
};
};
}