diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-02-20 00:02:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 00:02:04 +0000 |
commit | e5105e6cecf09b8c9374f5b2782913c74bc88cc3 (patch) | |
tree | 880f3d6618e219a01ccaaf39d9df1dc2bed54cb6 /pkgs/by-name/op | |
parent | a9b563bfb0016aeebb046a0b584a39b72a89207c (diff) | |
parent | 791355b27c5bfc58f7339a3dafc936ec50130e01 (diff) | |
download | nixlib-e5105e6cecf09b8c9374f5b2782913c74bc88cc3.tar nixlib-e5105e6cecf09b8c9374f5b2782913c74bc88cc3.tar.gz nixlib-e5105e6cecf09b8c9374f5b2782913c74bc88cc3.tar.bz2 nixlib-e5105e6cecf09b8c9374f5b2782913c74bc88cc3.tar.lz nixlib-e5105e6cecf09b8c9374f5b2782913c74bc88cc3.tar.xz nixlib-e5105e6cecf09b8c9374f5b2782913c74bc88cc3.tar.zst nixlib-e5105e6cecf09b8c9374f5b2782913c74bc88cc3.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/by-name/op')
-rw-r--r-- | pkgs/by-name/op/opensoundmeter/build.patch | 13 | ||||
-rw-r--r-- | pkgs/by-name/op/opensoundmeter/package.nix | 45 |
2 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/by-name/op/opensoundmeter/build.patch b/pkgs/by-name/op/opensoundmeter/build.patch new file mode 100644 index 000000000000..3ec76bc90db6 --- /dev/null +++ b/pkgs/by-name/op/opensoundmeter/build.patch @@ -0,0 +1,13 @@ +--- a/OpenSoundMeter.desktop ++++ b/OpenSoundMeter.desktop +@@ -6 +6 @@ +-Icon=white ++Icon=OpenSoundMeter +--- a/OpenSoundMeter.pro ++++ b/OpenSoundMeter.pro +@@ -261 +261 @@ +-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)) ++APP_GIT_VERSION = ? +@@ -486 +486 @@ +-unix:!macx:!ios:CONFIG(release, debug|release) { ++unix:!linux:!macx:!ios:CONFIG(release, debug|release) { diff --git a/pkgs/by-name/op/opensoundmeter/package.nix b/pkgs/by-name/op/opensoundmeter/package.nix new file mode 100644 index 000000000000..77c7237f85f5 --- /dev/null +++ b/pkgs/by-name/op/opensoundmeter/package.nix @@ -0,0 +1,45 @@ +{ lib, stdenv, fetchFromGitHub, alsa-lib, qt5 }: + +let + inherit (qt5) qmake wrapQtAppsHook qtgraphicaleffects qtquickcontrols2; +in stdenv.mkDerivation rec { + pname = "opensoundmeter"; + version = "1.3"; + + src = fetchFromGitHub { + owner = "psmokotnin"; + repo = "osm"; + rev = "v${version}"; + hash = "sha256-nRibcEtG6UUTgn7PhSg4IyahMYi5aSPvaEOrAdx6u3o="; + }; + + 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; + }; +} |