vintagestory: 1.21.7 -> 1.22.2
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
libglvnd,
|
||||
pipewire,
|
||||
libpulseaudio,
|
||||
dotnet-runtime_8,
|
||||
dotnet-runtime_10,
|
||||
x11Support ? true,
|
||||
libxi,
|
||||
libxcursor,
|
||||
@@ -19,7 +19,6 @@
|
||||
waylandSupport ? false,
|
||||
wayland ? null,
|
||||
libxkbcommon ? null,
|
||||
imagemagick,
|
||||
}:
|
||||
|
||||
assert x11Support || waylandSupport;
|
||||
@@ -28,11 +27,11 @@ assert waylandSupport -> libxkbcommon != null;
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "vintagestory";
|
||||
version = "1.21.7";
|
||||
version = "1.22.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://cdn.vintagestory.at/gamefiles/stable/vs_client_linux-x64_${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-zsVK6r5w7b7VBVxI3tJjtSs2uixBolXiM2oW088D84U=";
|
||||
hash = "sha256-caLSOm/WXpXrjC1az72Nc0XDWOpWB2R9iVq8ShDEZgU=";
|
||||
};
|
||||
|
||||
__structuredAttrs = true;
|
||||
@@ -40,7 +39,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
copyDesktopItems
|
||||
imagemagick
|
||||
];
|
||||
|
||||
desktopItems = [
|
||||
@@ -69,7 +67,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
mkdir -p $out/share/vintagestory $out/bin $out/share/icons/hicolor/512x512/apps $out/share/fonts/truetype
|
||||
cp -r * $out/share/vintagestory
|
||||
magick $out/share/vintagestory/assets/gameicon.xpm $out/share/icons/hicolor/512x512/apps/vintagestory.png
|
||||
install -Dm444 $out/share/vintagestory/assets/gameicon.png $out/share/icons/hicolor/512x512/apps/vintagestory.png
|
||||
cp $out/share/vintagestory/assets/game/fonts/*.ttf $out/share/fonts/truetype
|
||||
|
||||
rm -rvf $out/share/vintagestory/{install,run,server}.sh
|
||||
@@ -92,11 +90,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=(--prefix LD_LIBRARY_PATH : "$runtimeLibraryPath")
|
||||
|
||||
makeWrapper ${lib.meta.getExe dotnet-runtime_8} $out/bin/vintagestory \
|
||||
makeWrapper ${lib.meta.getExe dotnet-runtime_10} $out/bin/vintagestory \
|
||||
"''${makeWrapperArgs[@]}" \
|
||||
--add-flags $out/share/vintagestory/Vintagestory.dll
|
||||
|
||||
makeWrapper ${lib.getExe dotnet-runtime_8} $out/bin/vintagestory-server \
|
||||
makeWrapper ${lib.getExe dotnet-runtime_10} $out/bin/vintagestory-server \
|
||||
"''${makeWrapperArgs[@]}" \
|
||||
--add-flags $out/share/vintagestory/VintagestoryServer.dll
|
||||
|
||||
|
||||
Reference in New Issue
Block a user