From b6b0e67d81fd624ec50919c5493736dea0c32b27 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sun, 26 Mar 2023 23:49:36 -0400 Subject: [PATCH] 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. --- flake.nix | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 43d023e..82499bd 100644 --- a/flake.nix +++ b/flake.nix @@ -7,17 +7,10 @@ inherit (nixpkgs) lib; mypkgs = pkgs: - let - pkg = path: - let - p = pkgs.callPackage path { }; - in - if p.meta.available then p else pkgs.emptyDirectory; - in (lib.mapAttrs' (name: type: { name = lib.removeSuffix ".nix" name; - value = pkg (./pkgs + "/${name}"); + value = pkgs.callPackage (./pkgs + "/${name}") { }; }) (builtins.readDir ./pkgs));