forked from Monarch-Linux/training-flake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
37 lines (33 loc) · 1.06 KB
/
flake.nix
File metadata and controls
37 lines (33 loc) · 1.06 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
{
description = "Flake for training dev team";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
flake-parts.url = "github:hercules-ci/flake-parts";
treefmt-nix.url = "github:numtide/treefmt-nix";
};
outputs =
{ flake-parts, ... }@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"aarch64-linux"
"x86_64-linux"
];
perSystem =
{ pkgs, ... }:
{
packages = {
hello = pkgs.callPackage ./packages/hello.nix { };
cbonsai = pkgs.callPackage ./packages/cbonsai.nix { };
tty-clock = pkgs.callPackage ./packages/tty-clock.nix { };
nano = pkgs.callPackage ./packages/nano.nix { };
cmatrix = pkgs.callPackage ./packages/cmatrix.nix { };
pipes-sh = pkgs.callPackage ./packages/pipes-sh.nix { };
};
formatter =
let
treefmt-eval = inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
in
treefmt-eval.config.build.wrapper;
};
};
}