feat: add packages to checks
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-11-21 23:33:37 -05:00
parent c7e4d1d3e9
commit 303122dfc8
5 changed files with 28 additions and 3 deletions

View file

@ -2,7 +2,8 @@
pkgs,
self,
}: let
apps = import ./apps.nix {inherit pkgs self;};
nixosMachines = import ./machines.nix {inherit pkgs self;};
apps = import ./apps {inherit pkgs self;};
devices = import ./devices {inherit pkgs self;};
packages = import ./packages {inherit pkgs self;};
in
apps // nixosMachines
apps // devices // packages

View file

@ -0,0 +1,15 @@
{
pkgs,
self,
}: let
inherit (pkgs.lib) elem filterAttrs hasAttr;
packages =
filterAttrs (
_: v:
!(hasAttr "platforms" v.meta)
|| elem pkgs.system v.meta.platforms
)
self.packages.${pkgs.system};
in
packages

View file

@ -36,4 +36,13 @@ in
ronn --roff --pipe MANUAL.md > $out/man/man1/trash.1
'';
meta = {
mainProgram = "trash";
platforms = [
"x86_64-linux"
"i686-linux"
"x86_64-darwin"
];
};
}