about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libopusenc/default.nix
blob: e1d70bee6c4c840e7c2766d112771828e01674db (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
24
25
26
27
28
29
{ stdenv, fetchurl, pkgconfig, libopus }:

let
  version = "0.2.1";
in
stdenv.mkDerivation rec {
  pname = "libopusenc";
  inherit version;

  src = fetchurl {
    url = "https://archive.mozilla.org/pub/opus/libopusenc-${version}.tar.gz";
    sha256 = "1ffb0vhlymlsq70pxsjj0ksz77yfm2x0a1x8q50kxmnkm1hxp642";
  };

  outputs = [ "out" "dev" ];

  doCheck = true;

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ libopus ];

  meta = with stdenv.lib; {
    description = "Library for encoding .opus audio files and live streams";
    license = licenses.bsd3;
    homepage = http://www.opus-codec.org/;
    platforms = platforms.unix;
    maintainers = with maintainers; [ pmiddend ];
  };
}