-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
48 lines (43 loc) · 1 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
{
description = "Projects using Gowin FPGAs (Tang Nano 9K board)";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
sbt = {
url = "github:zaninime/sbt-derivation";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
nixpkgs,
flake-parts,
treefmt-nix,
sbt,
...
}@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ treefmt-nix.flakeModule ];
systems = [
"x86_64-linux"
"aarch64-linux"
];
perSystem =
{ system, ... }:
{
imports = [
./nix/treefmt.nix
./nix/shells.nix
./projects
];
_module.args.pkgs = import nixpkgs {
inherit system;
overlays = [ sbt.overlays.default ];
};
};
};
}