mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
83 lines
1.9 KiB
Nix
83 lines
1.9 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
pkg-config,
|
|
pipewire,
|
|
wayland,
|
|
fontconfig,
|
|
freetype,
|
|
libglvnd,
|
|
libxkbcommon,
|
|
libxrandr,
|
|
libxi,
|
|
libxcursor,
|
|
libx11,
|
|
vulkan-loader,
|
|
nix-update-script,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "openmeters";
|
|
version = "1.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "httpsworldview";
|
|
repo = "openmeters";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-yxSEe6NL/vcP1pnPdd8pVdg4TtnoWORQf+5RK7LPaV8=";
|
|
};
|
|
|
|
cargoHash = "sha256-/dQE1g6756zK3s1v74jYqo+MwMNleNlRDAIeiBOex7I=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
buildInputs = [
|
|
pipewire
|
|
libxkbcommon
|
|
];
|
|
|
|
postFixup = ''
|
|
patchelf --add-rpath '${
|
|
lib.makeLibraryPath [
|
|
fontconfig
|
|
freetype
|
|
libglvnd
|
|
libxkbcommon
|
|
wayland
|
|
libx11
|
|
libxcursor
|
|
libxi
|
|
libxrandr
|
|
vulkan-loader
|
|
]
|
|
}' $out/bin/openmeters
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
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";
|
|
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";
|
|
};
|
|
})
|