treewide: Remove minecraft server
This has fallen into disuse since the big Java vulnerability, and I have ideas for better ways of doing this. Meanwhile it's making maintenance and refactoring more difficult. Hence I'll remove the server completely for the time being.
This commit is contained in:
parent
046a88905d
commit
7095ab2631
207 changed files with 5 additions and 17764 deletions
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) makeExtensible foldr attrValues;
|
||||
tlater-lib = makeExtensible (self: let
|
||||
callLibs = file: import file {inherit self lib pkgs inputs;};
|
||||
in {minecraft = callLibs ./minecraft.nix;});
|
||||
in
|
||||
tlater-lib.extend (self: super: foldr (a: b: a // b) {} (attrValues super))
|
|
@ -1,61 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# Make a modpack given its mod inputs.
|
||||
#
|
||||
# Mods should be attrsets in this format:
|
||||
# {
|
||||
# project = "";
|
||||
# id = "";
|
||||
# filename = "";
|
||||
# sha256 = "";
|
||||
# }
|
||||
#
|
||||
# This may be nice to read from a json ;)
|
||||
#
|
||||
mkModpack = {
|
||||
name,
|
||||
version,
|
||||
mods,
|
||||
}:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
inherit name version;
|
||||
srcs = map pkgs.local.fetchFromCurseForge mods;
|
||||
|
||||
sourceRoot = "src/";
|
||||
preUnpack = "mkdir -p src/";
|
||||
unpackCmd = "cp $curSrc src/";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/mods/
|
||||
cp * $out/mods
|
||||
'';
|
||||
};
|
||||
|
||||
mkModpackZip = {
|
||||
name,
|
||||
version,
|
||||
mods,
|
||||
}:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
inherit name version;
|
||||
srcs = map pkgs.local.fetchFromCurseForge mods;
|
||||
|
||||
sourceRoot = "src/";
|
||||
preUnpack = "mkdir -p src/";
|
||||
unpackCmd = "cp $curSrc src/";
|
||||
|
||||
buildInputs = [pkgs.zip];
|
||||
|
||||
buildPhase = ''
|
||||
zip voor-kia-mods.zip *.jar
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/
|
||||
cp voor-kia-mods.zip $out/
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue