From ebcab9a3cc6f0919a1f4a1c5e0cb567ff80cbdf6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 13 Apr 2026 02:17:48 +0200 Subject: [PATCH] opus: init at 1.5.2 Modern audio compression for the internet https://github.com/xiph/opus --- pkgs/by-name/op/opus/package.nix | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/op/opus/package.nix diff --git a/pkgs/by-name/op/opus/package.nix b/pkgs/by-name/op/opus/package.nix new file mode 100644 index 000000000000..fdfe0cf2640a --- /dev/null +++ b/pkgs/by-name/op/opus/package.nix @@ -0,0 +1,40 @@ +{ + lib, + stdenv, + cmake, + fetchFromGitHub, + meson, + ninja, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "opus"; + version = "1.5.2"; + + src = fetchFromGitHub { + owner = "xiph"; + repo = "opus"; + tag = "v${finalAttrs.version}"; + hash = "sha256-M1G7ypcfs7nJmXgkyoG96jT/CkgN5BOzy+DGO4LVCvA="; + }; + + __structuredAttrs = true; + + strictDeps = true; + + nativeBuildInputs = [ + cmake + meson + ninja + ]; + + meta = { + description = "Modern audio compression for the internet"; + homepage = "https://github.com/xiph/opus"; + changelog = "https://github.com/xiph/opus/blob/${finalAttrs.src.rev}/NEWS"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "opus"; + platforms = lib.platforms.all; + }; +})