21 stdenv.mkDerivation rec {
22 pname = "vintagestory";
26 url = "https://cdn.vintagestory.at/gamefiles/stable/vs_client_linux-x64_${version}.tar.gz";
27 hash = "sha256-R6J+ACYDQpOzJZFBizsQGOexR7lMyeoZqz9TnWxfwyM=";
31 nativeBuildInputs = [ makeWrapper copyDesktopItems ];
33 buildInputs = [ dotnet-runtime_7 ];
35 runtimeLibs = lib.makeLibraryPath ([
54 name = "vintagestory";
55 desktopName = "Vintage Story";
56 exec = "vintagestory";
57 icon = "vintagestory";
58 comment = "Innovate and explore in a sandbox world";
59 categories = [ "Game" ];
66 mkdir -p $out/share/vintagestory $out/bin $out/share/pixmaps $out/share/fonts/truetype
67 cp -r * $out/share/vintagestory
68 cp $out/share/vintagestory/assets/gameicon.xpm $out/share/pixmaps/vintagestory.xpm
69 cp $out/share/vintagestory/assets/game/fonts/*.ttf $out/share/fonts/truetype
75 makeWrapper ${dotnet-runtime_7}/bin/dotnet $out/bin/vintagestory \
76 --prefix LD_LIBRARY_PATH : "${runtimeLibs}" \
77 --add-flags $out/share/vintagestory/Vintagestory.dll
78 makeWrapper ${dotnet-runtime_7}/bin/dotnet $out/bin/vintagestory-server \
79 --prefix LD_LIBRARY_PATH : "${runtimeLibs}" \
80 --add-flags $out/share/vintagestory/VintagestoryServer.dll
82 find "$out/share/vintagestory/assets/" -not -path "*/fonts/*" -regex ".*/.*[A-Z].*" | while read -r file; do
83 local filename="$(basename -- "$file")"
84 ln -sf "$filename" "''${file%/*}"/"''${filename,,}"
89 description = "In-development indie sandbox game about innovation and exploration";
90 homepage = "https://www.vintagestory.at/";
91 license = licenses.unfree;
92 maintainers = with maintainers; [ artturin gigglesquid ];