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