2017-08-01 01:13:33 +01:00
|
|
|
{ stdenv, fetchFromGitHub, nasm }:
|
2015-08-26 16:42:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-08-01 01:13:33 +01:00
|
|
|
name = "openh264-${version}";
|
2018-10-31 19:47:24 +00:00
|
|
|
version = "1.8.0";
|
2015-08-26 16:42:13 +01:00
|
|
|
|
2017-08-01 01:13:33 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cisco";
|
|
|
|
repo = "openh264";
|
|
|
|
rev = "v${version}";
|
2018-10-31 19:47:24 +00:00
|
|
|
sha256 = "1pl7hpk25nh7lcx1lbbv984gvnim0d6hxf4qfmrjjfjf6w37sjw4";
|
2015-08-26 16:42:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ nasm ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make PREFIX=$out install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A codec library which supports H.264 encoding and decoding";
|
|
|
|
homepage = http://www.openh264.org;
|
2015-08-26 21:24:05 +01:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = platforms.unix;
|
2015-08-26 16:42:13 +01:00
|
|
|
};
|
|
|
|
}
|