-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
35 lines (32 loc) · 887 Bytes
/
flake.nix
File metadata and controls
35 lines (32 loc) · 887 Bytes
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
{
description = "ECEN 602: Computer Networking";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
personal-packages = {
url = "github:gigamonster256/nur-packages";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ {
self,
nixpkgs,
personal-packages,
...
}: let
inherit (nixpkgs) lib;
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
pkgsFor = lib.genAttrs systems (
system: import nixpkgs {inherit system;} // personal-packages.packages.${system}
);
forEachSystem = f: lib.genAttrs systems (system: f pkgsFor.${system});
MPs = forEachSystem (pkgs: import ./MPs.nix {inherit pkgs;});
in {
formatter = forEachSystem (pkgs: pkgs.alejandra);
packages = MPs;
devShells = forEachSystem (pkgs: import ./shell.nix {inherit pkgs;});
};
}