diff --git a/pkgs/by-name/id/id3/fix-gcc15.patch b/pkgs/by-name/id/id3/fix-gcc15.patch new file mode 100644 index 000000000000..ddce9ac753fc --- /dev/null +++ b/pkgs/by-name/id/id3/fix-gcc15.patch @@ -0,0 +1,12 @@ +diff --git a/fileops.c b/fileops.c +index 1e70af1..9017bd0 100644 +--- a/fileops.c ++++ b/fileops.c +@@ -68,7 +68,6 @@ FILE *ftemp(char *templ, const char *mode) + #else + int fd = mkstemp(templ); + if(fd >= 0) { +- FILE* fdopen(); /* in case -ansi is used */ + if(f = fdopen(fd, mode)) return f; + close(fd); + #endif diff --git a/pkgs/by-name/id/id3/package.nix b/pkgs/by-name/id/id3/package.nix index 037c222cb7cd..99be080a9af1 100644 --- a/pkgs/by-name/id/id3/package.nix +++ b/pkgs/by-name/id/id3/package.nix @@ -16,6 +16,11 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-+h1wwgTB7CpbjyUAK+9BNRhmy83D+1I+cZ70E1m3ENk="; }; + patches = [ + # https://github.com/squell/id3/pull/35 + ./fix-gcc15.patch + ]; + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]; makeFlags = [ "prefix=$(out)" ];