summary refs log tree commit diff
path: root/pkgs/development/libraries/openh264/default.nix
blob: 8232af3e789e8d9b8d6c7db94f4242fcb9d00e28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, fetchurl, nasm }:

stdenv.mkDerivation rec {
  name = "openh264-1.5.0";

  src = fetchurl {
    url = "https://github.com/cisco/openh264/archive/v1.5.0.tar.gz";
    sha256 = "1d97dh5hzmy46jamfw03flvcz8md1hxp6y5n0b787h8ks7apn1wq";
  };

  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;
    license = stdenv.lib.licenses.bsd2;
    platforms = platforms.unix;
  };
}