Unverified Commit 7de6bd52 authored by Fernando Rodrigues's avatar Fernando Rodrigues Committed by GitHub
Browse files

acc: fix build with cmake 4 (#449710)

parents 1b427d43 f97e0e3b
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  cmake,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -18,6 +19,16 @@ stdenv.mkDerivation (finalAttrs: {
  patches = [
    # Don't force static builds
    ./disable-static.patch
    (fetchpatch {
      name = "cmake-fix-1";
      url = "https://github.com/ZDoom/acc/commit/a0e7d2437c7f66a2b973537c2e854e2b91cd9c4c.patch";
      hash = "sha256-n+YctiUFYbv6u3ixB5wTsT8KBmearECoUtC74OpoG6c=";
    })
    (fetchpatch {
      name = "cmake-fix-2";
      url = "https://github.com/ZDoom/acc/commit/df6a2735acccad9131ce73fa07506445cfe69ec2.patch";
      hash = "sha256-DFMxZ8/Shv+tBSPXdhaPI1iTi1fbng/IMO//0Jk4Lk4=";
    })
  ];

  nativeBuildInputs = [ cmake ];