update satisfactory dedi
This commit is contained in:
parent
ac53b7145d
commit
6b8b667e48
|
@ -231,10 +231,6 @@ in {
|
||||||
"acme-finished-${cfg.useACMEHost}.target"
|
"acme-finished-${cfg.useACMEHost}.target"
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
|
||||||
"LD_LIBRARY_PATH" = "${cfg.directory}/server/linux64";
|
|
||||||
};
|
|
||||||
|
|
||||||
unitConfig = {
|
unitConfig = {
|
||||||
RequiresMountsFor = cfg.directory;
|
RequiresMountsFor = cfg.directory;
|
||||||
};
|
};
|
||||||
|
@ -266,7 +262,7 @@ in {
|
||||||
"${cfg.directory}:ro"
|
"${cfg.directory}:ro"
|
||||||
];
|
];
|
||||||
BindReadOnlyPaths = [
|
BindReadOnlyPaths = [
|
||||||
"${cfg.package}:${cfg.directory}/server"
|
"${cfg.package}/opt:${cfg.directory}/server"
|
||||||
];
|
];
|
||||||
BindPaths = [
|
BindPaths = [
|
||||||
"${cfg.directory}/saves:${cfg.directory}/.config/Epic"
|
"${cfg.directory}/saves:${cfg.directory}/.config/Epic"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
appId = "1690800";
|
appId = "1690800";
|
||||||
buildId = "19234106";
|
buildId = "19876517";
|
||||||
steamworks_sdk = fetchFromSteam {
|
steamworks_sdk = fetchFromSteam {
|
||||||
name = "steamworks-sdk";
|
name = "steamworks-sdk";
|
||||||
inherit appId;
|
inherit appId;
|
||||||
|
@ -22,9 +22,9 @@ let
|
||||||
inherit appId;
|
inherit appId;
|
||||||
depot = {
|
depot = {
|
||||||
depotId = "1690802";
|
depotId = "1690802";
|
||||||
manifestId = "5693629351763493998";
|
manifestId = "7620210706575413121";
|
||||||
};
|
};
|
||||||
hash = "sha256-0svLwO4JYKIPwoNCRfT9+pocZ0n1QpSEqP41DdUhEac=";
|
hash = "sha256-jQbtHSBFCDcdycrDjIJBY4DGV7EgITvwv3k3+htZ7io=";
|
||||||
};
|
};
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
pname = "satisfactory-dedicated-server";
|
pname = "satisfactory-dedicated-server";
|
||||||
|
@ -36,15 +36,15 @@ in stdenv.mkDerivation {
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out/opt
|
||||||
cp -r . $out/.
|
cp -r . $out/opt/.
|
||||||
cp -r ${steamworks_sdk}/linux64 $out
|
cp -r ${steamworks_sdk}/linux64 $out/opt
|
||||||
|
|
||||||
mkdir -p $out/FactoryGame/Intermediate
|
mkdir -p $out/opt/FactoryGame/Intermediate
|
||||||
mkdir -p $out/FactoryGame/Saved
|
mkdir -p $out/opt/FactoryGame/Saved
|
||||||
mkdir -p $out/FactoryGame/Certificates
|
mkdir -p $out/opt/FactoryGame/Certificates
|
||||||
|
|
||||||
rm $out/FactoryServer.sh
|
rm $out/opt/FactoryServer.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
@ -55,21 +55,23 @@ in stdenv.mkDerivation {
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
echo patching binaries
|
echo patching binaries
|
||||||
|
|
||||||
chmod +x $out/Engine/Binaries/Linux/FactoryServer-Linux-Shipping
|
chmod +x $out/opt/Engine/Binaries/Linux/FactoryServer-Linux-Shipping
|
||||||
|
|
||||||
patchelf \
|
patchelf \
|
||||||
--add-needed ${SDL2}/lib/libSDL2-2.0.so.0 \
|
--add-needed ${SDL2}/lib/libSDL2-2.0.so.0 \
|
||||||
$out/linux64/steamclient.so
|
$out/opt/linux64/steamclient.so
|
||||||
|
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
--add-needed $out/linux64/steamclient.so \
|
--add-needed $out/opt/linux64/steamclient.so \
|
||||||
$out/Engine/Binaries/Linux/FactoryServer-Linux-Shipping
|
$out/opt/Engine/Binaries/Linux/FactoryServer-Linux-Shipping
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Satisfactory Dedicated Server";
|
description = "Satisfactory Dedicated Server";
|
||||||
|
homepage = "https://www.satisfactorygame.com/";
|
||||||
license = licenses.unfree;
|
license = licenses.unfree;
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
|
sourceProvenance = [ sourceTypes.binaryNativeCode ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue