-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
flake.nix
35 lines (30 loc) · 839 Bytes
/
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
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs, ... }: let
systems = [ "x86_64-linux" "aarch64-linux" ];
overlay = final: prev: {
cannelloni = final.callPackage ./default.nix {};
};
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
forAllPkgs = f:
forAllSystems (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [ overlay ];
};
in
f pkgs);
in {
overlays.default = overlay;
packages = forAllPkgs (pkgs: {
default = pkgs.cannelloni;
});
devShells = forAllPkgs (pkgs: {
default = import ./shell.nix { inherit pkgs; };
});
# nixosModules.default = import ./nixos-module.nix; TODO
checks = forAllPkgs (pkgs: {
# TODO
});
};
}