diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-01-23 11:48:44 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-02-05 17:02:02 +0000 |
commit | aafbe47972cfbbc6901775489c7e89976b8d4b1c (patch) | |
tree | 0d087c8ab277567a6bda076a2392ad8c08e09a9c | |
parent | d528d7c8d74b8a30a4a5c508f4349e4b4241797a (diff) |
libvmaf: fix build for BSD
Tested by building for FreeBSD and NetBSD.
-rw-r--r-- | pkgs/development/libraries/libvmaf/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libvmaf/default.nix b/pkgs/development/libraries/libvmaf/default.nix index e7add08871a6..c0fc4d1556f3 100644 --- a/pkgs/development/libraries/libvmaf/default.nix +++ b/pkgs/development/libraries/libvmaf/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, meson, ninja, nasm }: +{ lib, stdenv, fetchFromGitHub, fetchpatch, meson, ninja, nasm }: stdenv.mkDerivation rec { pname = "libvmaf"; @@ -13,6 +13,15 @@ stdenv.mkDerivation rec { sourceRoot = "source/libvmaf"; + patches = [ + # Backport fix for non-Linux, non-Darwin platforms. + (fetchpatch { + url = "https://github.com/Netflix/vmaf/commit/f47640f9ffee9494571bd7c9622e353660c93fc4.patch"; + stripLen = 1; + sha256 = "rsTKuqp8VJG5DBDpixPke3LrdfjKzUO945i+iL0n7CY="; + }) + ]; + nativeBuildInputs = [ meson ninja nasm ]; mesonFlags = [ "-Denable_avx512=true" ]; |