about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOPNA2608 <opna2608@protonmail.com>2024-01-22 21:18:00 +0100
committerOPNA2608 <opna2608@protonmail.com>2024-01-28 22:33:51 +0100
commit0ac780fa944c5416f01e64593c9191514486a446 (patch)
tree4a57245e5c946613f3d5aac47c98ac51db3d2892
parent18d5f603d2361ac9e711b3212013969331bc8846 (diff)
rmg: Fix licensing
- Fix meta.license
- Offer an extra, default-false option to build with license-compromising plugin
  - Taint meta.license to unfree when used
-rw-r--r--pkgs/by-name/rm/rmg/package.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/by-name/rm/rmg/package.nix b/pkgs/by-name/rm/rmg/package.nix
index 8c6f22ea1bed0..50436f36b9289 100644
--- a/pkgs/by-name/rm/rmg/package.nix
+++ b/pkgs/by-name/rm/rmg/package.nix
@@ -20,6 +20,8 @@
 , which
 , xdg-user-dirs
 , zlib
+# Affects final license
+, withAngrylionRdpPlus ? false
 }:
 
 let
@@ -77,6 +79,7 @@ stdenv.mkDerivation rec {
     # mupen64plus-input-gca is written in Rust, so we can't build it with
     # everything else.
     "-DNO_RUST=ON"
+    "-DUSE_ANGRYLION=${lib.boolToString withAngrylionRdpPlus}"
   ];
 
   qtWrapperArgs = lib.optionals stdenv.isLinux [
@@ -90,7 +93,7 @@ stdenv.mkDerivation rec {
       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;
+    license = if withAngrylionRdpPlus then licenses.unfree else licenses.gpl3Only;
     platforms = platforms.linux;
     mainProgram = "RMG";
     maintainers = with maintainers; [ slam-bert ];