This commit is contained in:
4DBug committed 2026-10-21 04:52:51 -05:00
1 parent 8d55b87546
commit c86ee98def
14 files changed
+472 -111

No files matched your search

@@ -0,0 +1,42 @@
# WoW Classic beta ("Forever") addons. Each output is $out/<AddonDir>/...
{ pkgs, lib }:
let
release = repo: tag: file: hash: pkgs.fetchzip {
url = "https://github.com/${repo}/releases/download/${tag}/${file}";
stripRoot = false;
inherit hash;
};
in
{
# Questie 12.0.3 + QuestieDB 1.0.4
questie = release "Questie/Questie" "bundle/v12.0.3+v1.0.4" "Questie-v12.0.3+v1.0.4.zip" "sha256-jt0zI8LjM9PCgbwF1EJ/yFo2GdclRlHNtFyyh3AcfGk=";
rxpguides = release "RestedXP/RXPGuides" "v4.11.5" "RXPGuides-v4.11.5.zip" "sha256-bPwCBpZYI1NyrzNU5O1AAwAl857Xw01VJzEtGX425dE=";
whatstraining = release "fusionpit/WhatsTraining" "11.0.0-beta9" "WhatsTraining-11.0.0-beta9.zip" "sha256-qZg7qlFkszv5uPLxd+OnzAYbIRj+yfQS4ybZ+oIQ57Y=";
olympus = release "dnl-gentile/olympus-addon" "v0.9.8" "Olympus-0.9.8.zip" "sha256-JBa+d77ZRwPfJez6ejrGrVv3IysCpoYvDeL2X8BRx4Q=";
overlord = release "leliondoc/overlord-forever-addon" "1.2.3" "Overlord-1.2.3.zip" "sha256-5p8qNJNycgQr4W9TzFSgPHifrUaO6h1ca1Y63WBw9H8=";
# Carbonite + .Gathermate2_Data/.Info/.Notes/.Quests/.Warehouse
carbonite = release "IrcDirk/Carbonite-All-in-One-Retail-Classic" "v12.1.0-00018" "CarboniteAllinOneRetailClassic-v12.1.0-00018.zip" "sha256-VwgNBRExknG4kNM8h+S6tCSEfRjfdajvRn/cv00vzuM=";
# Scrap 12.1.5 has no release zip; build the packager layout from the tagged commit.
scrap = pkgs.runCommand "wow-addon-scrap-12.1.5" {
src = pkgs.fetchFromGitHub {
owner = "Jaliborc";
repo = "Scrap";
rev = "9a792eaa0d8297cfcc1eecfaf06b16f3fa60918c"; # "12.1.5"
fetchSubmodules = true;
hash = "sha256-nulN1n0r+LQolddd0f7GbYWl01GlD97xKvISkhlRxsA=";
};
} ''
mkdir -p $out/Scrap_Config $out/Scrap_Merchant
cp -r $src $out/Scrap
for m in Config:config Merchant:merchant; do
printf '%s\n' \
"## Title: Scrap |cffffffff''${m%%:*}|r" \
"## Interface: 120100, 50504, 40402, 30404, 20506, 16001, 11509" \
"## Version: 12.1.5" \
"## Dependencies: Scrap" \
"## LoadOnDemand: 1" \
"..\\Scrap\\addons\\''${m#*:}\\''${m#*:}.xml" > $out/Scrap_''${m%%:*}/Scrap_''${m%%:*}.toc
done
'';
}
@@ -0,0 +1,41 @@
# World of Warcraft Classic beta ("Forever"), run outside Steam via Proton in the existing Steam prefix.
{ inputs, ... }: {
flake-file.inputs.nix-warcraft = {
url = "github:raccube/nix-warcraft/amirdrassil";
inputs.nixpkgs.follows = "nixpkgs";
};
den.aspects.software.gaming.homeManager = { config, lib, pkgs, osConfig ? { }, ... }:
let
prefix = ".local/share/Steam/steamapps/compatdata/2981697491";
game = "${config.home.homeDirectory}/${prefix}/pfx/drive_c/Program Files (x86)/World of Warcraft/_classic_beta_";
addons = import ./_addons.nix { inherit pkgs lib; };
# Not fetchable from a public source (CurseForge-only): copy them here by hand.
local = [
"Auctionator" "Baganator" "Syndicator" "BetterFishing" "SpeedyAutoLoot"
"ForeverStatSearch" "Leatrix_Maps" "Leatrix_Plus" "RareScanner" "TomTom"
];
in
{
imports = [ inputs.nix-warcraft.homeManagerModules.default ];
programs.wow = {
enable = true;
protonPackage = inputs.nix-warcraft.inputs.proton-ge-nix.packages.${pkgs.stdenv.hostPlatform.system}.v11.steamcompattool;
wayland = false; # same as under Steam (Xwayland)
prefixDir = prefix;
# Same as the Steam shortcut: Battle.net (installed in the 3358134755 prefix) run in this prefix; it handles login.
battleNetExe = "../3358134755/pfx/drive_c/Program Files (x86)/Battle.net/Battle.net.exe";
uiLayoutName = osConfig.networking.hostName or "16:9";
hideDesktopEntries = true; # its entry needs a flavourExeMap key classic-beta lacks
versions.classic-beta = {
displayName = "World of Warcraft Classic Beta";
executable = "pfx/drive_c/Program Files (x86)/World of Warcraft/_classic_beta_/WowB.exe";
addonDir = "${game}/Interface/AddOns";
wtfDir = "${game}/WTF";
addonPackages = lib.attrValues addons;
developmentAddons = lib.genAttrs local (d: "${config.home.homeDirectory}/.local/share/wow-addons/${d}");
};
};
};
}