rc: fix build with gcc 15

This commit is contained in:
Justin Bedo
2026-03-26 10:17:10 +11:00
parent d20b8f87b2
commit e85c15a0be
+8
View File
@@ -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