From dbcaf8b33f9778f8e9bf9a698fb247fc50d45f0d Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Thu, 1 Apr 2021 14:05:00 +0200 Subject: [PATCH] rav1e: fix build on darwin --- pkgs/tools/video/rav1e/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/video/rav1e/default.nix b/pkgs/tools/video/rav1e/default.nix index 72689bab5d16..16699e15ba6e 100644 --- a/pkgs/tools/video/rav1e/default.nix +++ b/pkgs/tools/video/rav1e/default.nix @@ -1,4 +1,4 @@ -{ stdenv, rustPlatform, fetchurl, fetchFromGitHub, lib, nasm, cargo-c }: +{ stdenv, rustPlatform, fetchurl, fetchFromGitHub, lib, nasm, cargo-c, libiconv }: rustPlatform.buildRustPackage rec { pname = "rav1e"; @@ -28,6 +28,7 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "1j92prjyr86wyx58h10xq9c9z28ky86h291x65w7qrxpj658aiz1"; nativeBuildInputs = [ nasm cargo-c ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; postBuild = '' cargo cbuild --release --frozen --prefix=${placeholder "out"}