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

25 lines
571 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, nasm }:
2015-08-26 15:42:13 +00:00
stdenv.mkDerivation rec {
pname = "openh264";
2020-05-25 00:55:02 +00:00
version = "2.1.1";
2015-08-26 15:42:13 +00:00
2017-08-01 00:13:33 +00:00
src = fetchFromGitHub {
owner = "cisco";
repo = pname;
2017-08-01 00:13:33 +00:00
rev = "v${version}";
2020-05-25 00:55:02 +00:00
sha256 = "0ffav46pz3sbj92nipd62z03fibyqgclfq9w8lgr80s6za6zdk5s";
2015-08-26 15:42:13 +00:00
};
nativeBuildInputs = [ nasm ];
2015-08-26 15:42:13 +00:00
makeFlags = [ "PREFIX=${placeholder "out"}" ];
2015-08-26 15:42:13 +00:00
meta = with lib; {
2015-08-26 15:42:13 +00:00
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 15:42:13 +00:00
};
}