From f761b0abc4d983c289a595e9584bb60efe1efbe3 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 13 Sep 2024 21:13:41 +0200 Subject: [PATCH] libaom: fix building for musl with GCC 14 --- pkgs/development/libraries/libaom/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libaom/default.nix b/pkgs/development/libraries/libaom/default.nix index e289a421fa6f..3845f1bc7ddb 100644 --- a/pkgs/development/libraries/libaom/default.nix +++ b/pkgs/development/libraries/libaom/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchzip, yasm, perl, cmake, pkg-config, python3 +{ lib, stdenv, fetchurl, fetchzip, yasm, perl, cmake, pkg-config, python3 , enableVmaf ? true, libvmaf , gitUpdater @@ -21,7 +21,15 @@ stdenv.mkDerivation rec { stripRoot = false; }; - patches = [ ./outputs.patch ]; + patches = [ + ./outputs.patch + + (fetchurl { + name = "musl.patch"; + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/libaom/files/libaom-3.4.0-posix-c-source-ftello.patch?id=50c7c4021e347ee549164595280cf8a23c960959"; + hash = "sha256-6+u7GTxZcSNJgN7D+s+XAVwbMnULufkTcQ0s7l+Ydl0="; + }) + ]; nativeBuildInputs = [ yasm perl cmake pkg-config python3