From 646113a9ddef513933385a64f6124ddaf7338c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francis=20Gagn=C3=A9?= Date: Tue, 7 Jan 2025 20:49:43 -0500 Subject: [PATCH] vorbisgain: Add patch to fix implicit declaration of isatty() Fixes #370032 --- pkgs/by-name/vo/vorbisgain/isatty.patch | 10 ++++++++++ pkgs/by-name/vo/vorbisgain/package.nix | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 pkgs/by-name/vo/vorbisgain/isatty.patch diff --git a/pkgs/by-name/vo/vorbisgain/isatty.patch b/pkgs/by-name/vo/vorbisgain/isatty.patch new file mode 100644 index 000000000000..cb09845f980f --- /dev/null +++ b/pkgs/by-name/vo/vorbisgain/isatty.patch @@ -0,0 +1,10 @@ +--- vorbisgain-0.37/misc.c 2004-01-03 16:17:28.000000000 -0500 ++++ vorbisgain-0.37-patched/misc.c 2025-01-07 20:35:13.056221211 -0500 +@@ -23,6 +23,7 @@ + #else /* WIN32 */ + #include + #include ++#include + + #ifndef DISABLE_WINSIZE + diff --git a/pkgs/by-name/vo/vorbisgain/package.nix b/pkgs/by-name/vo/vorbisgain/package.nix index 6f2e143ca661..a50823cab635 100644 --- a/pkgs/by-name/vo/vorbisgain/package.nix +++ b/pkgs/by-name/vo/vorbisgain/package.nix @@ -15,6 +15,10 @@ stdenv.mkDerivation rec { sha256 = "1v1h6mhnckmvvn7345hzi9abn5z282g4lyyl4nnbqwnrr98v0vfx"; }; + patches = [ + ./isatty.patch + ]; + hardeningDisable = [ "format" ]; buildInputs = [