Skip to content

Commit 2be9ed8

Browse files
vintagestory: 1.20.11 -> 1.20.12, improve perf, add dtomvan as maintainer (#414847)
2 parents 90dcc7c + 63cc2e2 commit 2be9ed8

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

pkgs/by-name/vi/vintagestory/package.nix

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,18 @@
2121

2222
stdenv.mkDerivation rec {
2323
pname = "vintagestory";
24-
version = "1.20.11";
24+
version = "1.20.12";
2525

2626
src = fetchurl {
2727
url = "https://cdn.vintagestory.at/gamefiles/stable/vs_client_linux-x64_${version}.tar.gz";
28-
hash = "sha256-IOreg6j/jLhOK8jm2AgSnYQrql5R6QxsshvPs8OUcQA=";
28+
hash = "sha256-h6YXEZoVVV9IuKkgtK9Z3NTvJogVNHmXdAcKxwfvqcE=";
2929
};
3030

3131
nativeBuildInputs = [
3232
makeWrapper
3333
copyDesktopItems
3434
];
3535

36-
buildInputs = [ dotnet-runtime_7 ];
37-
3836
runtimeLibs = lib.makeLibraryPath (
3937
[
4038
gtk2
@@ -77,30 +75,35 @@ stdenv.mkDerivation rec {
7775
runHook postInstall
7876
'';
7977

80-
preFixup =
81-
''
82-
makeWrapper ${dotnet-runtime_7}/bin/dotnet $out/bin/vintagestory \
83-
--prefix LD_LIBRARY_PATH : "${runtimeLibs}" \
84-
--add-flags $out/share/vintagestory/Vintagestory.dll
85-
makeWrapper ${dotnet-runtime_7}/bin/dotnet $out/bin/vintagestory-server \
86-
--prefix LD_LIBRARY_PATH : "${runtimeLibs}" \
87-
--add-flags $out/share/vintagestory/VintagestoryServer.dll
88-
''
89-
+ ''
90-
find "$out/share/vintagestory/assets/" -not -path "*/fonts/*" -regex ".*/.*[A-Z].*" | while read -r file; do
91-
local filename="$(basename -- "$file")"
92-
ln -sf "$filename" "''${file%/*}"/"''${filename,,}"
93-
done
94-
'';
78+
preFixup = ''
79+
makeWrapper ${dotnet-runtime_7}/bin/dotnet $out/bin/vintagestory \
80+
--prefix LD_LIBRARY_PATH : "${runtimeLibs}" \
81+
--set-default mesa_glthread true \
82+
--add-flags $out/share/vintagestory/Vintagestory.dll
83+
84+
makeWrapper ${dotnet-runtime_7}/bin/dotnet $out/bin/vintagestory-server \
85+
--prefix LD_LIBRARY_PATH : "${runtimeLibs}" \
86+
--set-default mesa_glthread true \
87+
--add-flags $out/share/vintagestory/VintagestoryServer.dll
88+
89+
find "$out/share/vintagestory/assets/" -not -path "*/fonts/*" -regex ".*/.*[A-Z].*" | while read -r file; do
90+
local filename="$(basename -- "$file")"
91+
ln -sf "$filename" "''${file%/*}"/"''${filename,,}"
92+
done
93+
'';
9594

96-
meta = with lib; {
95+
meta = {
9796
description = "In-development indie sandbox game about innovation and exploration";
9897
homepage = "https://www.vintagestory.at/";
99-
license = licenses.unfree;
100-
maintainers = with maintainers; [
98+
license = lib.licenses.unfree;
99+
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
100+
platforms = lib.platforms.linux;
101+
maintainers = with lib.maintainers; [
101102
artturin
102103
gigglesquid
103104
niraethm
105+
dtomvan
104106
];
107+
mainProgram = "vintagestory";
105108
};
106109
}

0 commit comments

Comments
 (0)