every attribute in packages.{system}.* is expected to be a derivation (you can see this if you run nix flake check), legacyPackages is explicitly for nixpkgs and nixpkgs-style attrsets combining packages and functions and sets of packages
20 lines
491 B
Nix
20 lines
491 B
Nix
{
|
|
description = "A Nix framework for configuring Team Fortress 2";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, ... }@inputs:
|
|
inputs.flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import inputs.nixpkgs { inherit system; };
|
|
lib = pkgs.lib;
|
|
in {
|
|
legacyPackages = import ./tf2/packages {
|
|
inherit pkgs lib;
|
|
};
|
|
});
|
|
}
|