Files
tf2-nix/tf2/packages/huds/hud-db/default.nix
Madeleine Sydney Ślaga 98673e8d34 Revert "Fix mkTf2Config derivation names ending with a dash -"
This reverts commit 61c63737af.

Fixes JumpAcademy maps failing to build.
2025-10-26 02:26:31 -06:00

24 lines
883 B
Nix

{ mkTf2Config, fetchFromGitHub, lib }:
builtins.mapAttrs
(name: e: mkTf2Config {
pname = name;
custom = [
(fetchFromGitHub (builtins.removeAttrs e.src ["__type"] // {
inherit name;
}))
];
meta = {
inherit (e) description;
# Hud-db currently requires all HUDs to be on GitHub. We can thus
# somewhat-safely assume the homepage. A number of packages have
# explicitly-set homepages, and we do not yet support them. Doing so
# requires patching the fetch-hud-db script, which I intend to do soonish.
homepage = "https://github.com/${e.src.owner}/${e.src.repo}";
platforms = lib.platforms.all;
# The biggest outstanding issue is recording the license here. Hud-db
# does not track license info, whiuch is a big issue IMO.
};
})
(builtins.fromJSON (builtins.readFile ./hud-db.json))