2017-07-31 17:13:33 -07:00
|
|
|
{ stdenv, fetchFromGitHub, nasm }:
|
2015-08-26 08:42:13 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "openh264";
|
2020-05-24 17:55:02 -07:00
|
|
|
version = "2.1.1";
|
2015-08-26 08:42:13 -07:00
|
|
|
|
2017-07-31 17:13:33 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cisco";
|
2019-12-14 14:34:19 -08:00
|
|
|
repo = pname;
|
2017-07-31 17:13:33 -07:00
|
|
|
rev = "v${version}";
|
2020-05-24 17:55:02 -07:00
|
|
|
sha256 = "0ffav46pz3sbj92nipd62z03fibyqgclfq9w8lgr80s6za6zdk5s";
|
2015-08-26 08:42:13 -07:00
|
|
|
};
|
|
|
|
|
2019-12-14 14:34:19 -08:00
|
|
|
nativeBuildInputs = [ nasm ];
|
2015-08-26 08:42:13 -07:00
|
|
|
|
2019-12-14 14:34:19 -08:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
2015-08-26 08:42:13 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A codec library which supports H.264 encoding and decoding";
|
2019-12-14 14:34:19 -08:00
|
|
|
homepage = "https://www.openh264.org";
|
|
|
|
license = licenses.bsd2;
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = platforms.unix;
|
2015-08-26 08:42:13 -07:00
|
|
|
};
|
|
|
|
}
|