-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
42 lines (40 loc) · 965 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
36
37
38
39
40
41
42
{
description = "yunfachi's Nix Packages collection";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/master";
outputs = {
self,
nixpkgs,
}: let
# https://github.com/NixOS/nixpkgs/blob/master/lib/systems/flake-systems.nix
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"armv6l-linux"
"armv7l-linux"
"i686-linux"
"mipsel-linux"
"aarch64-darwin"
"armv5tel-linux"
"powerpc64le-linux"
"riscv64-linux"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
umport = (import ./lib/umport.nix {inherit (nixpkgs) lib;}).umport;
in rec {
legacyPackages = forAllSystems (system:
import ./. {
inherit nixpkgs system self;
});
nixosModules = rec {
nypkgs = {
imports = umport {path = ./modules;};
};
default = nypkgs;
};
lib = forAllSystems (
system:
legacyPackages.${system}.lib
);
};
}