nixpkgs/pkgs/by-name/rm/rmg/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

105 lines
2.1 KiB
Nix
Raw Permalink Normal View History

{
lib,
stdenv,
fetchFromGitHub,
2024-07-05 13:07:46 +02:00
gitUpdater,
boost,
cmake,
discord-rpc,
freetype,
hidapi,
libpng,
libsamplerate,
minizip,
nasm,
pkg-config,
qt6Packages,
SDL2,
2025-02-17 19:33:33 +01:00
SDL2_net,
speexdsp,
vulkan-headers,
vulkan-loader,
which,
xdg-user-dirs,
zlib,
withWayland ? false,
# Affects final license
withAngrylionRdpPlus ? false,
}:
2025-02-17 19:33:33 +01:00
stdenv.mkDerivation (finalAttrs: {
pname = "rmg";
2025-05-20 01:59:23 +00:00
version = "0.7.9";
src = fetchFromGitHub {
owner = "Rosalie241";
repo = "RMG";
2025-02-17 19:33:33 +01:00
tag = "v${finalAttrs.version}";
2025-05-20 01:59:23 +00:00
hash = "sha256-RPjt79kDBgA8hxhDAZUU+xMuDcAMoxDhWt6NpTFHeMI=";
};
nativeBuildInputs = [
cmake
nasm
pkg-config
2025-02-17 19:33:33 +01:00
qt6Packages.wrapQtAppsHook
which
];
2025-02-17 19:33:33 +01:00
buildInputs = [
2025-07-22 15:19:36 +02:00
boost
2025-02-17 19:33:33 +01:00
discord-rpc
2025-07-22 15:19:36 +02:00
freetype
hidapi
libpng
2025-02-17 19:33:33 +01:00
libsamplerate
2025-07-22 15:19:36 +02:00
minizip
SDL2
SDL2_net
speexdsp
2025-02-17 19:33:33 +01:00
vulkan-headers
vulkan-loader
xdg-user-dirs
2025-07-22 15:19:36 +02:00
zlib
]
++ (
2025-02-17 19:33:33 +01:00
with qt6Packages;
[
qtbase
qtsvg
qtwebsockets
]
++ lib.optional withWayland qtwayland
);
cmakeFlags = [
2025-02-17 19:33:33 +01:00
(lib.cmakeBool "PORTABLE_INSTALL" false)
# mupen64plus-input-gca is written in Rust, so we can't build it with
# everything else.
2025-02-17 19:33:33 +01:00
(lib.cmakeBool "NO_RUST" true)
(lib.cmakeBool "USE_ANGRYLION" withAngrylionRdpPlus)
];
qtWrapperArgs =
lib.optionals stdenv.hostPlatform.isLinux [
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]}"
]
2025-02-17 19:33:33 +01:00
++ lib.optional withWayland "--set RMG_ALLOW_WAYLAND 1";
2024-07-05 13:07:46 +02:00
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
2025-02-17 19:33:33 +01:00
meta = {
homepage = "https://github.com/Rosalie241/RMG";
2025-02-17 19:33:33 +01:00
changelog = "https://github.com/Rosalie241/RMG/releases/tag/v${finalAttrs.version}";
description = "Rosalie's Mupen GUI";
longDescription = ''
Rosalie's Mupen GUI is a free and open-source mupen64plus front-end
written in C++. It offers a simple-to-use user interface.
'';
2025-02-17 19:33:33 +01:00
license = if withAngrylionRdpPlus then lib.licenses.unfree else lib.licenses.gpl3Only;
platforms = lib.platforms.linux;
mainProgram = "RMG";
2025-02-17 19:33:33 +01:00
maintainers = with lib.maintainers; [ slam-bert ];
};
2025-02-17 19:33:33 +01:00
})