opensoundmeter: init at 1.3

+58
+13
pkgs/by-name/op/opensoundmeter/build.patch
··· 1 + --- a/OpenSoundMeter.desktop 2 + +++ b/OpenSoundMeter.desktop 3 + @@ -6 +6 @@ 4 + -Icon=white 5 + +Icon=OpenSoundMeter 6 + --- a/OpenSoundMeter.pro 7 + +++ b/OpenSoundMeter.pro 8 + @@ -261 +261 @@ 9 + -APP_GIT_VERSION = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ describe --tags $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ rev-list --tags --max-count=1)) 10 + +APP_GIT_VERSION = ? 11 + @@ -486 +486 @@ 12 + -unix:!macx:!ios:CONFIG(release, debug|release) { 13 + +unix:!linux:!macx:!ios:CONFIG(release, debug|release) {
+45
pkgs/by-name/op/opensoundmeter/package.nix
··· 1 + { lib, stdenv, fetchFromGitHub, alsa-lib, qt5 }: 2 + 3 + let 4 + inherit (qt5) qmake wrapQtAppsHook qtgraphicaleffects qtquickcontrols2; 5 + in stdenv.mkDerivation rec { 6 + pname = "opensoundmeter"; 7 + version = "1.3"; 8 + 9 + src = fetchFromGitHub { 10 + owner = "psmokotnin"; 11 + repo = "osm"; 12 + rev = "v${version}"; 13 + hash = "sha256-nRibcEtG6UUTgn7PhSg4IyahMYi5aSPvaEOrAdx6u3o="; 14 + }; 15 + 16 + patches = [ ./build.patch ]; 17 + 18 + postPatch = '' 19 + substituteInPlace OpenSoundMeter.pro \ 20 + --replace 'APP_GIT_VERSION = ?' 'APP_GIT_VERSION = ${src.rev}' 21 + ''; 22 + 23 + nativeBuildInputs = [ qmake wrapQtAppsHook ]; 24 + 25 + buildInputs = [ alsa-lib qtgraphicaleffects qtquickcontrols2 ]; 26 + 27 + installPhase = '' 28 + runHook preInstall 29 + 30 + install OpenSoundMeter -Dt $out/bin 31 + install OpenSoundMeter.desktop -m444 -Dt $out/share/applications 32 + install icons/white.png -m444 -D $out/share/icons/OpenSoundMeter.png 33 + 34 + runHook postInstall 35 + ''; 36 + 37 + meta = with lib; { 38 + description = "Sound measurement application for tuning audio systems in real-time"; 39 + homepage = "https://opensoundmeter.com/"; 40 + license = licenses.gpl3Plus; 41 + mainProgram = "OpenSoundMeter"; 42 + maintainers = with maintainers; [ orivej ]; 43 + platforms = platforms.linux; 44 + }; 45 + }