-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.nix
74 lines (64 loc) · 1.72 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
with import <nixpkgs> {};
with stdenv;
with import ./lib/lib.nix;
with import ./lib/sprocket;
rec {
packs = {
TPPI3C = buildPack TPPI3C;
};
TPPI3C = {
name = "TPPI3C-0.0.1";
screenName = "tppi"; # On dev server.
port = 25567; # On dev server.
forge = {
major = "1.10.2";
minor = "12.18.3.2185";
};
# These are copied to the client as well as the server.
# Suggested use: Configs. Scripts. That sort of thing.
extraDirs = [
./base-tppi3
(generateCustomOreGenConfig ./COGConfig)
];
# Server only.
extraServerDirs = [
./base-server
];
# These are all the mods we'd like to include in this pack.
# (Not yet, they're not.)
manifests = [
./manifest/definitely.nix
./manifest/maybe.nix
./manifest/tools.nix
./manifest/dev-only.nix
];
# Not all mods are equally welcome.
blacklist = [
# WAILA conflicts with HWYLA.
"waila"
# MFFS's current release is buggy, see https://github.com/nekosune/modularforcefieldsystem/issues/7
"modular-forcefield-system"
];
};
ServerPack = buildServerPack rec {
inherit packs;
hostname = "tppi.brage.info";
urlBase = "https://" + hostname + "/";
};
# To use:
# nix-build -A ServerPackLocal && (cd result && python -m SimpleHTTPServer)
ServerPackLocal = buildServerPack rec {
inherit packs;
hostname = "localhost";
urlBase = "http://" + hostname + "/";
};
# This wraps the updater with its dependencies.
updater = python2Packages.buildPythonPackage rec {
name = "updater";
version = "tppi";
src = ./manifest;
propagatedBuildInputs = with pythonPackages; [
beautifulsoup lxml futures cacert
];
};
}