Skip to content
Merged
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
20 changes: 16 additions & 4 deletions nix/package.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
lib,
stdenv,
config,
buildDotnetModule,
dotnetCorePackages,
fetchFromGitHub,
Expand All @@ -16,7 +18,6 @@
libXrandr,
fontconfig,
glew,
SDL2,
glfw,
glibc,
libGL,
Expand All @@ -30,6 +31,15 @@
zlib,
glib,
gdk-pixbuf,
alsa-lib,
libjack2,
pipewire,
libpulseaudio,
alsaSupport ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid,
jackSupport ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid,
pipewireSupport ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid,
pulseaudioSupport ?
config.pulseaudio or stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid,
soundfont-fluid,

# Path to set ROBUST_SOUNDFONT_OVERRIDE to, essentially the default soundfont used.
Expand Down Expand Up @@ -100,7 +110,6 @@ buildDotnetModule rec {
libXrandr

glfw
SDL2
glibc
libGL
openal
Expand All @@ -111,7 +120,6 @@ buildDotnetModule rec {
runtimeDeps = [
# Required by the game.
glfw
SDL2
glibc
libGL
openal
Expand Down Expand Up @@ -139,7 +147,11 @@ buildDotnetModule rec {
glew

# TODO: Figure out dependencies for CEF support.
];
]
++ lib.optional alsaSupport alsa-lib
++ lib.optional jackSupport libjack2
++ lib.optional pipewireSupport pipewire
++ lib.optional pulseaudioSupport libpulseaudio;

# ${soundfont-path} is escaped here:
# https://github.com/NixOS/nixpkgs/blob/d29975d32b1dc7fe91d5cb275d20f8f8aba399ad/pkgs/build-support/setup-hooks/make-wrapper.sh#L126C35-L126C45
Expand Down
Loading