nixpkgs/pkgs/development/libraries/openh264/default.nix
Rick van Schijndel 13943f5dc5 openh264: support cross-compilation
As simple as giving 1 flag to make, nice!
2021-11-21 16:30:44 +01:00

27 lines
621 B
Nix

{ lib, stdenv, fetchFromGitHub, nasm }:
stdenv.mkDerivation rec {
pname = "openh264";
version = "2.1.1";
src = fetchFromGitHub {
owner = "cisco";
repo = pname;
rev = "v${version}";
sha256 = "0ffav46pz3sbj92nipd62z03fibyqgclfq9w8lgr80s6za6zdk5s";
};
nativeBuildInputs = [ nasm ];
makeFlags = [
"PREFIX=${placeholder "out"}"
"ARCH=${stdenv.hostPlatform.linuxArch}"
];
meta = with lib; {
description = "A codec library which supports H.264 encoding and decoding";
homepage = "https://www.openh264.org";
license = licenses.bsd2;
platforms = platforms.unix;
};
}