-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rmg: append to init at 0.5.4 rmg: further add to init at 0.5.4 rmg: (hopefully) finally finish init at 0.5.4 rmg: fix qt imports for init at 0.5.4 rmg: move 'which' to nativeBuildInputs for init at 0.5.4 rmg: try only importing 'which' in init at 0.5.4 rmg: fix a whitespace error in init at 0.5.4 rmg: remove 'dash' for init at 0.5.4 rmg: fix up qt packages for init at 0.5.4 rmg: remove seperate 'wrapQtAppsHook' from imports for init at 0.5.4 rmg: add myself to 'maintainer-list.nix' for init at 0.5.4
- Loading branch information
Showing
2 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ lib | ||
, stdenv | ||
, fetchFromGitHub | ||
, boost | ||
, cmake | ||
, discord-rpc | ||
, freetype | ||
, hidapi | ||
, libpng | ||
, libsamplerate | ||
, minizip | ||
, nasm | ||
, pkg-config | ||
, qt6Packages | ||
, SDL2 | ||
, speexdsp | ||
, vulkan-headers | ||
, vulkan-loader | ||
, which | ||
, xdg-user-dirs | ||
, zlib | ||
}: | ||
|
||
let | ||
inherit (qt6Packages) qtbase qtsvg wrapQtAppsHook; | ||
in | ||
stdenv.mkDerivation rec { | ||
pname = "rmg"; | ||
version = "0.5.4"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "Rosalie241"; | ||
repo = "RMG"; | ||
rev = "v${version}"; | ||
hash = "sha256-SAQJKfYoouJ2DLVks6oXiyiOI2/kgmyaHqt/FRfqKjI="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
cmake | ||
nasm | ||
pkg-config | ||
wrapQtAppsHook | ||
which | ||
]; | ||
|
||
buildInputs = [ | ||
boost | ||
discord-rpc | ||
freetype | ||
hidapi | ||
libpng | ||
libsamplerate | ||
minizip | ||
qtbase | ||
qtsvg | ||
SDL2 | ||
speexdsp | ||
vulkan-headers | ||
vulkan-loader | ||
xdg-user-dirs | ||
zlib | ||
]; | ||
|
||
cmakeFlags = [ | ||
"-DPORTABLE_INSTALL=OFF" | ||
# mupen64plus-input-gca is written in Rust, so we can't build it with | ||
# everything else. | ||
"-DNO_RUST=ON" | ||
]; | ||
|
||
qtWrapperArgs = lib.optionals stdenv.isLinux [ | ||
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]}" | ||
]; | ||
|
||
meta = with lib; { | ||
homepage = "https://github.com/Rosalie241/RMG"; | ||
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. | ||
''; | ||
license = licenses.gpl3; | ||
platforms = platforms.linux; | ||
mainProgram = "RMG"; | ||
maintainers = with maintainers; [ slam-bert ]; | ||
}; | ||
} |