-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
29 lines (29 loc) · 899 Bytes
/
Copy pathflake.nix
File metadata and controls
29 lines (29 loc) · 899 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
{
description = "@socheatsok78 personal NUR repository";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs =
{ self, nixpkgs }:
let
supportedSystems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
forAllSupportedSystems = nixpkgs.lib.genAttrs supportedSystems;
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
in
{
checks = forAllSupportedSystems (system: self.packages.${system});
legacyPackages = forAllSupportedSystems (
system:
import ./default.nix {
pkgs = import nixpkgs { inherit system; };
}
);
overlays = import ./overlays;
packages = forAllSupportedSystems (
system: nixpkgs.lib.filterAttrs (_: v: nixpkgs.lib.isDerivation v) self.legacyPackages.${system}
);
};
}