Skip to content

Commit

Permalink
rmg: add option to build with experimental wayland support
Browse files Browse the repository at this point in the history
  • Loading branch information
kira-bruneau committed May 1, 2024
1 parent cf8cc12 commit c4cbe99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkgs/by-name/rm/rmg/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -72,7 +73,7 @@ stdenv.mkDerivation rec {
vulkan-loader
xdg-user-dirs
zlib
];
] ++ lib.optional withWayland qtwayland;

cmakeFlags = [
"-DPORTABLE_INSTALL=OFF"
Expand All @@ -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";
Expand Down
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit c4cbe99

Please sign in to comment.