mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
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:
parent
f4d084803d
commit
b6b0e67d81
1 changed files with 1 additions and 8 deletions
|
@ -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));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue