From 3b75fafa0dd1b9d6b0e59bcf29bf4d9d39cd2d87 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Tue, 5 Mar 2024 04:05:03 +0000 Subject: [PATCH] shells/ryujinx: init --- flake.lock | 12 ++++++------ flake.nix | 1 + shells/ryujinx/default.nix | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 shells/ryujinx/default.nix diff --git a/flake.lock b/flake.lock index 71d6341..7ff6113 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1708501555, - "narHash": "sha256-zJaF0RkdIPbh8LTmnpW/E7tZYpqIE+MePzlWwUNob4c=", + "lastModified": 1709386671, + "narHash": "sha256-VPqfBnIJ+cfa78pd4Y5Cr6sOWVW8GYHRVucxJGmRf8Q=", "owner": "nixos", "repo": "nixpkgs", - "rev": "b50a77c03d640716296021ad58950b1bb0345799", + "rev": "fa9a51752f1b5de583ad5213eb621be071806663", "type": "github" }, "original": { @@ -42,11 +42,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1705309234, - "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", + "lastModified": 1709126324, + "narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=", "owner": "numtide", "repo": "flake-utils", - "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", + "rev": "d465f4819400de7c8d874d50b982301f28a84605", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index d019742..52b1077 100644 --- a/flake.nix +++ b/flake.nix @@ -18,6 +18,7 @@ in { devShells = { plotter = pkgs.callPackage ./shells/plotter { }; + ryujinx = pkgs.callPackage ./shells/ryujinx { }; zephyr = pkgs.callPackage ./shells/zephyr { }; }; diff --git a/shells/ryujinx/default.nix b/shells/ryujinx/default.nix new file mode 100644 index 0000000..6bf65a4 --- /dev/null +++ b/shells/ryujinx/default.nix @@ -0,0 +1,38 @@ +{ lib, mkShell, dotnetCorePackages, libX11, libgdiplus, SDL2_mixer, openal +, libsoundio, sndio, pulseaudio, vulkan-loader, ffmpeg, libICE, libSM, libXi +, libXcursor, libXext, libXrandr, fontconfig, glew, libGL, SDL2, }: + +mkShell { + packages = [ + # dotnet + dotnetCorePackages.sdk_8_0 + dotnetCorePackages.runtime_8_0 + ]; + + LD_LIBRARY_PATH = lib.makeLibraryPath [ + # Base + libX11 + libgdiplus + SDL2_mixer + openal + libsoundio + sndio + pulseaudio + vulkan-loader + ffmpeg + + # Avalonia UI + libICE + libSM + libXi + libXcursor + libXext + libXrandr + fontconfig + glew + + # Headless executable + libGL + SDL2 + ]; +}