nixpkgs/pkgs/development/libraries/openh264/default.nix

25 lines
573 B
Nix
Raw Normal View History

2017-07-31 17:13:33 -07:00
{ stdenv, fetchFromGitHub, nasm }:
2015-08-26 08:42:13 -07:00
stdenv.mkDerivation rec {
pname = "openh264";
2020-03-26 05:13:22 -07:00
version = "2.1.0";
2015-08-26 08:42:13 -07:00
2017-07-31 17:13:33 -07:00
src = fetchFromGitHub {
owner = "cisco";
repo = pname;
2017-07-31 17:13:33 -07:00
rev = "v${version}";
2020-03-26 05:13:22 -07:00
sha256 = "1wba260n1932vafd5ni2jqv9kzc7lj6a1asm1cqk8jv690m6zvpi";
2015-08-26 08:42:13 -07:00
};
nativeBuildInputs = [ nasm ];
2015-08-26 08:42:13 -07: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";
homepage = "https://www.openh264.org";
license = licenses.bsd2;
platforms = platforms.unix;
2015-08-26 08:42:13 -07:00
};
}