Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 20 additions & 18 deletions nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
iconConvTools,
copyDesktopItems,
makeDesktopItem,
libX11,
libICE,
libSM,
libXi,
libXcursor,
libXext,
libXrandr,
libx11,
libice,
libsm,
libxi,
libxcursor,
libxext,
libxrandr,
libGL,
freetype,
glib,
Expand All @@ -27,6 +27,7 @@
libxkbcommon,
wayland,
fontconfig,
dbus,
alsaSupport ? stdenv.hostPlatform.isLinux,
jackSupport ? stdenv.hostPlatform.isLinux,
pipewireSupport ? stdenv.hostPlatform.isLinux,
Expand All @@ -37,16 +38,16 @@
soundfont-path ? "${soundfont-fluid}/share/soundfonts/FluidR3_GM2-2.sf2",
}:
let
version = "0.37.1";
pname = "space-station-14-launcher";
version = "0.37.1";
in
buildDotnetModule rec {
inherit pname;

# Workaround to prevent buildDotnetModule from overriding assembly versions.
# If you inherit version it will break loading Robust.LoaderApi when connecting to a server!
name = "${pname}-${version}";

# A bit redundant but I don't trust this package to be maintained by anyone else.
src = fetchFromGitHub {
owner = "space-wizards";
repo = "SS14.Launcher";
Expand Down Expand Up @@ -87,18 +88,19 @@ buildDotnetModule rec {
libGL
freetype
glib
libX11
libICE
libSM
libXi
libXcursor
libXext
libXrandr
libx11
libice
libsm
libxi
libxcursor
libxext
libxrandr
at-spi2-atk
at-spi2-core
libxkbcommon
wayland
fontconfig.lib
dbus
]
++ lib.optional alsaSupport alsa-lib
++ lib.optional jackSupport libjack2
Expand All @@ -108,7 +110,7 @@ buildDotnetModule rec {
# ${soundfont-path} is escaped here:
# https://github.com/NixOS/nixpkgs/blob/d29975d32b1dc7fe91d5cb275d20f8f8aba399ad/pkgs/build-support/setup-hooks/make-wrapper.sh#L126C35-L126C45
# via https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html under ${parameter@operator}
makeWrapperArgs = [ ''--set ROBUST_SOUNDFONT_OVERRIDE ${soundfont-path}'' ];
makeWrapperArgs = [ "--set ROBUST_SOUNDFONT_OVERRIDE ${soundfont-path}" ];

executables = [ "SS14.Launcher" ];

Expand All @@ -128,7 +130,7 @@ buildDotnetModule rec {
mkdir -p $out/lib/space-station-14-launcher/loader
cp -r SS14.Loader/bin/${buildType}/*/*/* $out/lib/space-station-14-launcher/loader/

icoFileToHiColorTheme SS14.Launcher/Assets/icon.ico space-station-14-launcher $out
icoFileToHiColorTheme SS14.Launcher/Assets/icon.ico ${pname} $out
'';

meta = {
Expand Down
Loading