rmg: add option to build with experimental wayland support

This commit is contained in:
Kira Bruneau
2024-05-01 17:55:19 -04:00
parent cf8cc1201b
commit c4cbe99d0c
2 changed files with 8 additions and 3 deletions
+4 -3
View File
@@ -20,12 +20,13 @@
, which
, xdg-user-dirs
, zlib
, withWayland ? false
# Affects final license
, withAngrylionRdpPlus ? false
}:
let
inherit (qt6Packages) qtbase qtsvg wrapQtAppsHook;
inherit (qt6Packages) qtbase qtsvg qtwayland wrapQtAppsHook;
in
stdenv.mkDerivation rec {
pname = "rmg";
@@ -72,7 +73,7 @@ stdenv.mkDerivation rec {
vulkan-loader
xdg-user-dirs
zlib
];
] ++ lib.optional withWayland qtwayland;
cmakeFlags = [
"-DPORTABLE_INSTALL=OFF"
@@ -84,7 +85,7 @@ stdenv.mkDerivation rec {
qtWrapperArgs = lib.optionals stdenv.isLinux [
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]}"
];
] ++ lib.optional withWayland "--set RMG_WAYLAND 1";
meta = with lib; {
homepage = "https://github.com/Rosalie241/RMG";
+4
View File
@@ -2781,6 +2781,10 @@ with pkgs;
ripes = qt6Packages.callPackage ../applications/emulators/ripes { };
rmg-wayland = callPackage ../by-name/rm/rmg/package.nix {
withWayland = true;
};
rpcemu = callPackage ../applications/emulators/rpcemu { };
ruffle = callPackage ../applications/emulators/ruffle { };