2017-08-01 02:13:33 +02:00
|
|
|
{ stdenv, fetchFromGitHub, nasm }:
|
2015-08-26 17:42:13 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-08-01 02:13:33 +02:00
|
|
|
name = "openh264-${version}";
|
|
|
|
version = "1.7.0";
|
2015-08-26 17:42:13 +02:00
|
|
|
|
2017-08-01 02:13:33 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cisco";
|
|
|
|
repo = "openh264";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0ywrqni05bh925ws5fmd24bm6h9n6z2wp1q19v545v06biiwr46a";
|
2015-08-26 17:42:13 +02: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 22:24:05 +02:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.unix;
|
2015-08-26 17:42:13 +02:00
|
|
|
};
|
|
|
|
}
|