diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-01-31 15:10:46 -0500 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-01-31 15:10:46 -0500 |
| commit | f061e0b0c7ed745f372a89d5ec5f69dbd818c731 (patch) | |
| tree | 6df41e1666046bb9292a3be74b278b2ba68bf78d /packages | |
| parent | 968c8b2ad3459c9834c3d4ccb799031f9be5b6ca (diff) | |
| download | nix-config-f061e0b0c7ed745f372a89d5ec5f69dbd818c731.tar.gz nix-config-f061e0b0c7ed745f372a89d5ec5f69dbd818c731.tar.bz2 nix-config-f061e0b0c7ed745f372a89d5ec5f69dbd818c731.zip | |
desktop changes 2026-01-31
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/vintagestory/default.nix | 117 |
1 files changed, 0 insertions, 117 deletions
diff --git a/packages/vintagestory/default.nix b/packages/vintagestory/default.nix deleted file mode 100644 index 8df3a75..0000000 --- a/packages/vintagestory/default.nix +++ /dev/null @@ -1,117 +0,0 @@ -{ - lib, - stdenv, - fetchurl, - makeWrapper, - makeDesktopItem, - copyDesktopItems, - xorg, - gtk2, - sqlite, - openal, - cairo, - libGLU, - SDL2, - freealut, - libglvnd, - pipewire, - libpulseaudio, - wayland, - libxkbcommon, - dotnet-runtime_8 -}: - -stdenv.mkDerivation rec { - name = "vintagestory-${version}"; - version = "1.21.4"; - - src = fetchurl { - url = "https://cdn.vintagestory.at/gamefiles/stable/vs_client_linux-x64_${version}.tar.gz"; - hash = "sha256-npffJgxgUMefX9OiveNk1r4kVqsMaVCC1jcWaibz9l8="; - }; - - nativeBuildInputs = [ - makeWrapper - copyDesktopItems - ]; - - buildInputs = [ dotnet-runtime_8 ]; - - runtimeLibs = lib.makeLibraryPath ( - [ - gtk2 - sqlite - openal - cairo - libGLU - SDL2 - freealut - libglvnd - pipewire - libpulseaudio - wayland - libxkbcommon - ] - ++ (with xorg; [ - libX11 - libXi - libXcursor - ]) - ); - - desktopItems = [ - (makeDesktopItem { - name = "vintagestory"; - desktopName = "Vintage Story"; - exec = "vintagestory"; - icon = "vintagestory"; - comment = "Innovate and explore in a sandbox world"; - categories = [ "Game" ]; - }) - (makeDesktopItem { - name = "Vintagestory_url_connect"; - desktopName = "Vintage Story URI Connect"; - type = "Application"; - noDisplay = true; - mimeTypes = [ "x-scheme-handler/vintagestoryjoin" ]; - exec = "vintagestory -c %U"; - categories = [ "Game" ]; - }) - (makeDesktopItem { - name = "Vintagestory_url_mod"; - desktopName = "Vintage Story URI mod install"; - type = "Application"; - noDisplay = true; - mimeTypes = [ "x-scheme-handler/vintagestorymodinstall" ]; - exec = "vintagestory -i %U"; - categories = [ "Game" ]; - }) - ]; - - installPhase = '' - runHook preInstall - - mkdir -p $out/share/vintagestory $out/bin $out/share/pixmaps $out/share/fonts/truetype - cp -r * $out/share/vintagestory - cp $out/share/vintagestory/assets/gameicon.xpm $out/share/pixmaps/vintagestory.xpm - cp $out/share/vintagestory/assets/game/fonts/*.ttf $out/share/fonts/truetype - - runHook postInstall - ''; - - preFixup = - '' - makeWrapper ${dotnet-runtime_8}/bin/dotnet $out/bin/vintagestory \ - --prefix LD_LIBRARY_PATH : "${runtimeLibs}" \ - --add-flags $out/share/vintagestory/Vintagestory.dll - makeWrapper ${dotnet-runtime_8}/bin/dotnet $out/bin/vintagestory-server \ - --prefix LD_LIBRARY_PATH : "${runtimeLibs}" \ - --add-flags $out/share/vintagestory/VintagestoryServer.dll - '' - + '' - find "$out/share/vintagestory/assets/" -not -path "*/fonts/*" -regex ".*/.*[A-Z].*" | while read -r file; do - local filename="$(basename -- "$file")" - ln -sf "$filename" "''${file%/*}"/"''${filename,,}" - done - ''; -} |
