From 1b2a146025b0a685d68a2fb9dc7dceced0be2474 Mon Sep 17 00:00:00 2001 From: Shelvacu Date: Sun, 29 Jun 2025 19:03:14 -0700 Subject: [PATCH] Expose all derivations under packages.* so that `nix flake check` checks something useful --- flake.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 81f054a..4c17f0a 100644 --- a/flake.nix +++ b/flake.nix @@ -14,8 +14,23 @@ inputs.flake-utils.lib.eachDefaultSystem (system: let pkgs = import inputs.nixpkgs { inherit system; }; + inherit (pkgs) lib; + tf2Pkgs = mkTf2Pkgs { inherit pkgs; }; in { - legacyPackages = mkTf2Pkgs pkgs; + legacyPackages = tf2Pkgs; + packages = lib.mergeAttrsList (lib.flip map [ + [] + [ "huds" ] + [ "maps" ] + [ "mastercomfig" "addons" ] + [ "mastercomfig" "presets" ] + ] (attrPath: + lib.pipe tf2Pkgs [ + (lib.getAttrFromPath attrPath) + (lib.filterAttrs (_: v: lib.isDerivation v)) + (lib.mapAttrs' (k: v: lib.nameValuePair (lib.concatStringsSep "_" (attrPath ++ [k])) v)) + ] + )); }) // { lib = { inherit mkTf2Pkgs; };