tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
opensoundmeter: init at 1.3
Orivej Desh
2 years ago
002f3ecb
830a7417
+58
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
op
opensoundmeter
build.patch
package.nix
+13
pkgs/by-name/op/opensoundmeter/build.patch
···
1
1
+
--- a/OpenSoundMeter.desktop
2
2
+
+++ b/OpenSoundMeter.desktop
3
3
+
@@ -6 +6 @@
4
4
+
-Icon=white
5
5
+
+Icon=OpenSoundMeter
6
6
+
--- a/OpenSoundMeter.pro
7
7
+
+++ b/OpenSoundMeter.pro
8
8
+
@@ -261 +261 @@
9
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
10
+
+APP_GIT_VERSION = ?
11
11
+
@@ -486 +486 @@
12
12
+
-unix:!macx:!ios:CONFIG(release, debug|release) {
13
13
+
+unix:!linux:!macx:!ios:CONFIG(release, debug|release) {
+45
pkgs/by-name/op/opensoundmeter/package.nix
···
1
1
+
{ lib, stdenv, fetchFromGitHub, alsa-lib, qt5 }:
2
2
+
3
3
+
let
4
4
+
inherit (qt5) qmake wrapQtAppsHook qtgraphicaleffects qtquickcontrols2;
5
5
+
in stdenv.mkDerivation rec {
6
6
+
pname = "opensoundmeter";
7
7
+
version = "1.3";
8
8
+
9
9
+
src = fetchFromGitHub {
10
10
+
owner = "psmokotnin";
11
11
+
repo = "osm";
12
12
+
rev = "v${version}";
13
13
+
hash = "sha256-nRibcEtG6UUTgn7PhSg4IyahMYi5aSPvaEOrAdx6u3o=";
14
14
+
};
15
15
+
16
16
+
patches = [ ./build.patch ];
17
17
+
18
18
+
postPatch = ''
19
19
+
substituteInPlace OpenSoundMeter.pro \
20
20
+
--replace 'APP_GIT_VERSION = ?' 'APP_GIT_VERSION = ${src.rev}'
21
21
+
'';
22
22
+
23
23
+
nativeBuildInputs = [ qmake wrapQtAppsHook ];
24
24
+
25
25
+
buildInputs = [ alsa-lib qtgraphicaleffects qtquickcontrols2 ];
26
26
+
27
27
+
installPhase = ''
28
28
+
runHook preInstall
29
29
+
30
30
+
install OpenSoundMeter -Dt $out/bin
31
31
+
install OpenSoundMeter.desktop -m444 -Dt $out/share/applications
32
32
+
install icons/white.png -m444 -D $out/share/icons/OpenSoundMeter.png
33
33
+
34
34
+
runHook postInstall
35
35
+
'';
36
36
+
37
37
+
meta = with lib; {
38
38
+
description = "Sound measurement application for tuning audio systems in real-time";
39
39
+
homepage = "https://opensoundmeter.com/";
40
40
+
license = licenses.gpl3Plus;
41
41
+
mainProgram = "OpenSoundMeter";
42
42
+
maintainers = with maintainers; [ orivej ];
43
43
+
platforms = platforms.linux;
44
44
+
};
45
45
+
}