all: refactor to follow RFC140

This commit is contained in:
2023-09-21 12:27:35 +10:00
parent 029f6e7795
commit 93b6195542
21 changed files with 103 additions and 28 deletions

View File

@ -0,0 +1,19 @@
# Composes the packages collection.
{
# The system packages will be build and used on.
localSystem
# Nixpkgs
, pkgs
# Nixpkgs lib
, lib ? pkgs.lib
}:
let
allPackages = import ./stage.nix {
inherit lib pkgs;
};
available = lib.filterAttrs
(_: drv: builtins.elem localSystem (drv.meta.platforms or [ ]));
in
available allPackages