about summary refs log tree commit diff
path: root/pkgs/by-name/rm/rmg/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/rm/rmg/package.nix')
-rw-r--r--pkgs/by-name/rm/rmg/package.nix18
1 files changed, 5 insertions, 13 deletions
diff --git a/pkgs/by-name/rm/rmg/package.nix b/pkgs/by-name/rm/rmg/package.nix
index 4c2643346a44a..4dd9ac30d648d 100644
--- a/pkgs/by-name/rm/rmg/package.nix
+++ b/pkgs/by-name/rm/rmg/package.nix
@@ -1,7 +1,7 @@
 { lib
 , stdenv
 , fetchFromGitHub
-, fetchpatch
+, gitUpdater
 , boost
 , cmake
 , discord-rpc
@@ -30,25 +30,15 @@ let
 in
 stdenv.mkDerivation rec {
   pname = "rmg";
-  version = "0.5.7";
+  version = "0.6.5";
 
   src = fetchFromGitHub {
     owner = "Rosalie241";
     repo = "RMG";
     rev = "v${version}";
-    hash = "sha256-j3OVhcTGUXPC0+AqvAJ7+mc+IFqJeBITU99pvfXIunQ=";
+    hash = "sha256-mgb9Ed11fBQVnhhU5w1958a19dbTOL0ADczUOxKAnqA=";
   };
 
-  patches = [
-    # Fix bad concatenation of CMake GNUInstallDirs variables, causing broken asset lookup paths
-    # Remove when version > 0.5.7
-    (fetchpatch {
-      name = "0001-rmg-Fix-GNUInstallDirs-usage.patch";
-      url = "https://github.com/Rosalie241/RMG/commit/685aa597c7ee7ad7cfd4dd782f40d21863b75899.patch";
-      hash = "sha256-HnaxUAX+3Z/VTtYYuhoXOtsDtV61nskgyzEcp8fdBsU=";
-    })
-  ];
-
   nativeBuildInputs = [
     cmake
     nasm
@@ -87,6 +77,8 @@ stdenv.mkDerivation rec {
     "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]}"
   ] ++ lib.optional withWayland "--set RMG_WAYLAND 1";
 
+  passthru.updateScript = gitUpdater { rev-prefix = "v"; };
+
   meta = with lib; {
     homepage = "https://github.com/Rosalie241/RMG";
     description = "Rosalie's Mupen GUI";