mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
Merge pull request #214962 from alyssais/libvmaf-bsd
Revert "Revert Merge #214786: libvmaf: fix build for BSD"
This commit is contained in:
commit
acc47db7e6
@ -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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user