Skip to content

Instantly share code, notes, and snippets.

@sguzman
Created May 21, 2025 14:17
Show Gist options
  • Save sguzman/265a7502ab556c8fd42baa1cc5e5d6ba to your computer and use it in GitHub Desktop.
Save sguzman/265a7502ab556c8fd42baa1cc5e5d6ba to your computer and use it in GitHub Desktop.
Working flake.nix for dolphin emulator fork executable Ishiiruka-Slippi 3.4.6
{
description = "Dev-shell with all runtime libs for Ishiiruka-Slippi v3.4.6";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }@inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true; # ffmpeg-full, etc.
};
runtimeLibs = with pkgs; [
# ── core GNOME stack ─────────────────────────────────────────
glib # libgobject-2.0.so.0, libglib-2.0.so.0
# ── audio / input ───────────────────────────────────────────
alsa-lib libpulseaudio libevdev libusb1 udev hidapi bluez
# ── video / windowing ───────────────────────────────────────
libGL mesa
xorg.libX11 xorg.libXext xorg.libXi xorg.libXrandr xorg.libXcursor xorg.libXinerama xorg.libXfixes
xorg.libSM xorg.libICE # ← NEW: libSM.so.6 / libICE.so.6
pango
gdk-pixbuf
fontconfig
fribidi
harfbuzz
libdrm
freetype
xorg.libxcb
p11-kit
gmp
libgpg-error
gdk-pixbuf
# ── media / networking helpers ──────────────────────────────
ffmpeg-full curl enet miniupnpc lz4 lzo zlib libspng
# ── UI toolkit ──────────────────────────────────────────────
qt5.qtbase # Ishiiruka is still Qt 5
# ── optional back-ends ──────────────────────────────────────
SDL2
];
libPath = pkgs.lib.makeLibraryPath runtimeLibs;
in {
# <- this name makes `nix develop` find it automatically
devShells.default = pkgs.mkShell {
name = "ishiiruka-slippi-runtime";
packages =
runtimeLibs
++ [ pkgs.steam-run pkgs.patchelf pkgs.glibc.bin ];
# expose libs for the unpatched binary
LD_LIBRARY_PATH = libPath;
shellHook = ''
export LD_LIBRARY_PATH=${libPath}:$LD_LIBRARY_PATH
echo
echo ">> Ishiiruka runtime environment ready."
echo " Download Slippi_Online-x86_64.AppImage and run:"
echo " steam-run ./Slippi_Online-x86_64.AppImage"
echo
'';
};
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment