Unverified Commit b17e88b1 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

rc: fix build with gcc 15 (#489238)

parents 5457b507 e85c15a0
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch2,
  pkgsStatic,
  byacc,
  ed,
@@ -44,6 +45,13 @@ stdenv.mkDerivation (finalAttrs: {
    "man"
  ];

  patches = [
    (fetchpatch2 {
      url = "https://github.com/rakitzis/rc/commit/2bab312ea11cb77d2654a731357842971c0b5d18.patch";
      hash = "sha256-LpnrsvJH/0CRS0bCgoZT2Dkac6AZH8DZIPU4MQ5MP0I=";
    })
  ];

  # TODO: think on a less ugly fixup
  postPatch = ''
    ed -v -s Makefile << EOS