From 13943f5dc53ce474568769d77b96a022199161d8 Mon Sep 17 00:00:00 2001 From: Rick van Schijndel Date: Thu, 30 Sep 2021 20:45:14 +0200 Subject: [PATCH] openh264: support cross-compilation As simple as giving 1 flag to make, nice! --- pkgs/development/libraries/openh264/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/openh264/default.nix b/pkgs/development/libraries/openh264/default.nix index 6e856b04ac4a..3858cb4dc2d5 100644 --- a/pkgs/development/libraries/openh264/default.nix +++ b/pkgs/development/libraries/openh264/default.nix @@ -13,7 +13,10 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ nasm ]; - makeFlags = [ "PREFIX=${placeholder "out"}" ]; + makeFlags = [ + "PREFIX=${placeholder "out"}" + "ARCH=${stdenv.hostPlatform.linuxArch}" + ]; meta = with lib; { description = "A codec library which supports H.264 encoding and decoding";