remove meta.available check on packages

This was only needed for architecture-specific packages before.
Since forAllSystems only specifies x86 for now, it's not needed.
This commit is contained in:
Sean Buckley 2023-03-26 23:49:36 -04:00
parent f4d084803d
commit b6b0e67d81

View file

@ -7,17 +7,10 @@
inherit (nixpkgs) lib; inherit (nixpkgs) lib;
mypkgs = pkgs: mypkgs = pkgs:
let
pkg = path:
let
p = pkgs.callPackage path { };
in
if p.meta.available then p else pkgs.emptyDirectory;
in
(lib.mapAttrs' (lib.mapAttrs'
(name: type: { (name: type: {
name = lib.removeSuffix ".nix" name; name = lib.removeSuffix ".nix" name;
value = pkg (./pkgs + "/${name}"); value = pkgs.callPackage (./pkgs + "/${name}") { };
}) })
(builtins.readDir ./pkgs)); (builtins.readDir ./pkgs));