Unverified Commit 22d4a57d authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

beanstalkd: fix build with gcc15 (#511694)

parents b76944f2 8804e499
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  installShellFiles,
  nixosTests,
}:
@@ -11,12 +12,20 @@ stdenv.mkDerivation (finalAttrs: {
  pname = "beanstalkd";

  src = fetchFromGitHub {
    owner = "kr";
    owner = "beanstalkd";
    repo = "beanstalkd";
    rev = "v${finalAttrs.version}";
    hash = "sha256-xoudhPad4diGGE8iZaY1/4LiENlKT2dYcIR6wlQdlTU=";
  };

  patches = [
    # Fix build with GCC 15, remove after next update
    (fetchpatch {
      url = "https://github.com/beanstalkd/beanstalkd/commit/85070765.patch";
      hash = "sha256-QDDypvrQtjlG7iPE0GfvpZMActIw1gRx36+BpZ6WjMw=";
    })
  ];

  hardeningDisable = [ "fortify" ];

  makeFlags = [ "PREFIX=${placeholder "out"}" ];