Unverified Commit 70db141c authored by Kira Bruneau's avatar Kira Bruneau Committed by GitHub
Browse files

rmg: 0.8.8 -> 0.8.9, fix build (#503038)

parents 7db9bdd2 41326ad7
Loading
Loading
Loading
Loading
+17 −2
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch2,
  gitUpdater,
  boost,
  cmake,
@@ -30,15 +31,29 @@

stdenv.mkDerivation (finalAttrs: {
  pname = "rmg";
  version = "0.8.8";
  version = "0.8.9";

  src = fetchFromGitHub {
    owner = "Rosalie241";
    repo = "RMG";
    tag = "v${finalAttrs.version}";
    hash = "sha256-d2kUUJTZhm5m7MIZ8Ym0wyBvX2+h/FsrRQoyLTi0/N8=";
    hash = "sha256-L8fA2D1BQWhJiygHmbOmINBFk27X2Vd7zHCGnElM9EE=";
  };

  # Fixes include errors from including minizip libraries
  patches = [
    (fetchpatch2 {
      name = "0000-fix-minizip-include-archive";
      url = "https://github.com/Rosalie241/RMG/commit/7e4e402f277803d3a998e96ea04064063bd1551a.patch";
      hash = "sha256-uyEYv2r7J2nou9AHkezEX0LS/mOnIa6lbQqhxHY9ibo=";
    })
    (fetchpatch2 {
      name = "0001-fix-minizip-include-mupen64plus-core";
      url = "https://github.com/Rosalie241/RMG/commit/8ee3410680c247dcfee806562073626a0b7bf46b.patch";
      hash = "sha256-29zg90ScPNizWq3BzNuM6yfCwmMXRYFfbjOg3YpCrGI=";
    })
  ];

  nativeBuildInputs = [
    cmake
    nasm