Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
alsa-lib,
|
|
qt5,
|
|
}:
|
|
|
|
let
|
|
inherit (qt5)
|
|
qmake
|
|
wrapQtAppsHook
|
|
qtgraphicaleffects
|
|
qtquickcontrols2
|
|
;
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "opensoundmeter";
|
|
version = "1.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "psmokotnin";
|
|
repo = "osm";
|
|
rev = "v${version}";
|
|
hash = "sha256-jM9tkfNjPNHcPOG0n7NeohC/O3E6CUspOF3UTkQ2rs8=";
|
|
};
|
|
|
|
patches = [ ./build.patch ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace OpenSoundMeter.pro \
|
|
--replace 'APP_GIT_VERSION = ?' 'APP_GIT_VERSION = ${src.rev}'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
qmake
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
alsa-lib
|
|
qtgraphicaleffects
|
|
qtquickcontrols2
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install OpenSoundMeter -Dt $out/bin
|
|
install OpenSoundMeter.desktop -m444 -Dt $out/share/applications
|
|
install icons/white.png -m444 -D $out/share/icons/OpenSoundMeter.png
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Sound measurement application for tuning audio systems in real-time";
|
|
homepage = "https://opensoundmeter.com/";
|
|
license = licenses.gpl3Plus;
|
|
mainProgram = "OpenSoundMeter";
|
|
maintainers = with maintainers; [ orivej ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|