diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libopusenc')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libopusenc/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libopusenc/default.nix b/nixpkgs/pkgs/development/libraries/libopusenc/default.nix new file mode 100644 index 000000000000..3cb14a2ea99e --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libopusenc/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchurl, pkg-config, libopus }: + +stdenv.mkDerivation rec { + pname = "libopusenc"; + version = "0.2.1"; + + src = fetchurl { + url = "https://archive.mozilla.org/pub/opus/libopusenc-${version}.tar.gz"; + sha256 = "1ffb0vhlymlsq70pxsjj0ksz77yfm2x0a1x8q50kxmnkm1hxp642"; + }; + + outputs = [ "out" "dev" ]; + + doCheck = true; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ libopus ]; + + meta = with lib; { + description = "Library for encoding .opus audio files and live streams"; + license = licenses.bsd3; + homepage = "https://www.opus-codec.org/"; + platforms = platforms.unix; + maintainers = with maintainers; [ pmiddend ]; + }; +} |