|
21 | 21 |
|
22 | 22 | stdenv.mkDerivation rec { |
23 | 23 | pname = "vintagestory"; |
24 | | - version = "1.20.11"; |
| 24 | + version = "1.20.12"; |
25 | 25 |
|
26 | 26 | src = fetchurl { |
27 | 27 | url = "https://cdn.vintagestory.at/gamefiles/stable/vs_client_linux-x64_${version}.tar.gz"; |
28 | | - hash = "sha256-IOreg6j/jLhOK8jm2AgSnYQrql5R6QxsshvPs8OUcQA="; |
| 28 | + hash = "sha256-h6YXEZoVVV9IuKkgtK9Z3NTvJogVNHmXdAcKxwfvqcE="; |
29 | 29 | }; |
30 | 30 |
|
31 | 31 | nativeBuildInputs = [ |
32 | 32 | makeWrapper |
33 | 33 | copyDesktopItems |
34 | 34 | ]; |
35 | 35 |
|
36 | | - buildInputs = [ dotnet-runtime_7 ]; |
37 | | - |
38 | 36 | runtimeLibs = lib.makeLibraryPath ( |
39 | 37 | [ |
40 | 38 | gtk2 |
@@ -77,30 +75,35 @@ stdenv.mkDerivation rec { |
77 | 75 | runHook postInstall |
78 | 76 | ''; |
79 | 77 |
|
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 | + ''; |
95 | 94 |
|
96 | | - meta = with lib; { |
| 95 | + meta = { |
97 | 96 | description = "In-development indie sandbox game about innovation and exploration"; |
98 | 97 | 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; [ |
101 | 102 | artturin |
102 | 103 | gigglesquid |
103 | 104 | niraethm |
| 105 | + dtomvan |
104 | 106 | ]; |
| 107 | + mainProgram = "vintagestory"; |
105 | 108 | }; |
106 | 109 | } |
0 commit comments