-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
72 lines (69 loc) · 1.87 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
62
63
64
65
66
67
68
69
70
71
72
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII)
#
# SPDX-License-Identifier: Apache-2.0
{
description = "Flakes file for ghafscan";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# Allows structuring the flake with the NixOS module system
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
# flake-parts module for finding the project root directory
flake-root.url = "github:srid/flake-root";
# Format all the things
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# For preserving compatibility with non-Flake users
flake-compat = {
url = "github:nix-community/flake-compat";
flake = false;
};
nix-fast-build = {
url = "github:Mic92/nix-fast-build";
# re-use some existing inputs
inputs = {
flake-parts.follows = "flake-parts";
treefmt-nix.follows = "treefmt-nix";
};
};
csvdiff = {
url = "github:tiiuae/ci-public?dir=csvdiff";
inputs = {
# reduce duplicate inputs
nixpkgs.follows = "nixpkgs";
flake-root.follows = "flake-root";
flake-parts.follows = "flake-parts";
treefmt-nix.follows = "treefmt-nix";
};
};
sbomnix = {
url = "github:tiiuae/sbomnix";
inputs = {
# reduce duplicate inputs
nixpkgs.follows = "nixpkgs";
flake-root.follows = "flake-root";
flake-parts.follows = "flake-parts";
treefmt-nix.follows = "treefmt-nix";
};
};
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake
{
inherit inputs;
} {
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
imports = [
./nix
];
};
}