all: refactor to follow RFC140
This commit is contained in:
19
pkgs/top-level/default.nix
Normal file
19
pkgs/top-level/default.nix
Normal 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
|
Reference in New Issue
Block a user