From 41845b3c0d81f593a91031a68613d3ee1c50552e Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Wed, 27 May 2026 15:40:02 +0200 Subject: [PATCH] openmeters: unstable-2025-12-15 -> 1.4.1 --- pkgs/by-name/op/openmeters/package.nix | 35 +++++++++++++++++++------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/op/openmeters/package.nix b/pkgs/by-name/op/openmeters/package.nix index ff65fab8e719..b57d06f570d6 100644 --- a/pkgs/by-name/op/openmeters/package.nix +++ b/pkgs/by-name/op/openmeters/package.nix @@ -2,7 +2,6 @@ lib, fetchFromGitHub, rustPlatform, - makeWrapper, pkg-config, pipewire, wayland, @@ -14,28 +13,30 @@ libxi, libxcursor, libx11, + vulkan-loader, + nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "openmeters"; - version = "0-unstable-2025-12-15"; + version = "1.4.1"; src = fetchFromGitHub { owner = "httpsworldview"; repo = "openmeters"; - rev = "701b22b40796e33b118719724a54be231144a5ac"; - hash = "sha256-svsC0lxAnkVuyk6LZPyFSjeOL8H0yY3dRA37+K1e/xY="; + tag = "v${finalAttrs.version}"; + hash = "sha256-7B/S3B15xfjZEFvzISBvyIzszoIQ1CRXexPrsnFQ+YM="; }; - cargoHash = "sha256-jm/8FdJiVVh/PAyJiLA/KK4IaXi4gUBMGIKz/FL3KZ8="; + cargoHash = "sha256-SiXv93Bir1Qq9T3blfcFdfDkmp00OIq9odxRrwcz/50="; nativeBuildInputs = [ - makeWrapper pkg-config rustPlatform.bindgenHook ]; buildInputs = [ pipewire + libxkbcommon ]; postFixup = '' @@ -50,15 +51,31 @@ rustPlatform.buildRustPackage (finalAttrs: { libxcursor libxi libxrandr + vulkan-loader ] }' $out/bin/openmeters ''; + passthru.updateScript = nix-update-script { }; + meta = { - description = "Fast and simple audio metering/visualization program for Linux"; + description = "Fast and professional audio metering/visualization for Linux"; + longDescription = '' + OpenMeters is a fast audio metering application for Linux built with + Rust and PipeWire. It provides LUFS/RMS/true-peak loudness meters + (ITU-R BS.1770-5), a spectrogram with spectral reassignment, a + spectrum analyser, an oscilloscope with stable-trigger mode, a + stereometer (X/Y vector scope, M/S goniometer) and a waveform view, + with per-application and per-device capture. + ''; + homepage = "https://github.com/httpsworldview/openmeters"; - license = lib.licenses.mit; - maintainers = [ lib.maintainers.bitbloxhub ]; + changelog = "https://github.com/httpsworldview/openmeters/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ + bitbloxhub + magnetophon + ]; platforms = lib.platforms.linux; mainProgram = "openmeters"; };