Skip to content

Automated, pre-built packages for AzerothCore for NixOS.

Notifications You must be signed in to change notification settings

gaelreyrol/nixpkgs-azerothcore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nixpkgs-azerothcore

.github/workflows/ci.yml

Automated, pre-built packages for AzerothCore for NixOS.

Note This repository is mostly for fun, to learn Nix packaging and distribution.

Warning Flake feature is the only supported usage method. Linux x86_64 is the only supported platform.

Flake Usage

In your flake.nix:

{
  inputs = {
    nixpkgs-azerothcore.url = "github:gaelreyrol/nixpkgs-azerothcore";

    # only needed if you use as a package set:
    nixpkgs-azerothcore.inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = inputs: {
    nixosConfigurations."myserver" =
    let
      system = "x86_64-linux";
    in nixpkgs.lib.nixosSystem {
      inherit system;
      modules = [({pkgs, config, ... }: {
        config = {
          nix.settings = {
            # add binary caches
            trusted-public-keys = [
              "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
              "nixpkgs-azerothcore.cachix.org-1:GYsuj+qDDx53K+4IO5DuGQdocNzKgxOf1aAk5GPWLes="
            ];
            substituters = [
              "https://cache.nixos.org"
              "https://nixpkgs-azerothcore.cachix.org"
            ];
          };

          # add the overlay
          nixpkgs.overlays = [ inputs.nixpkgs-azerothcore.overlay ];

          # install the main package
          environment.systemPackages = [
            pkgs.azerothcore.server-wotlk
            pkgs.azerothcore.client-data-wotlk
          ];
        };
      })];
    };
  };
}

About

Automated, pre-built packages for AzerothCore for NixOS.

Resources

Stars

Watchers

Forks