File tree 1 file changed +73
-0
lines changed
1 file changed +73
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ lib ,
3
+ stdenv ,
4
+ fetchFromGitLab ,
5
+ appstream ,
6
+ blueprint-compiler ,
7
+ desktop-file-utils ,
8
+ gjs ,
9
+ gst_all_1 ,
10
+ libadwaita ,
11
+ meson ,
12
+ ninja ,
13
+ pkg-config ,
14
+ typescript ,
15
+ wrapGAppsHook4 ,
16
+ nix-update-script ,
17
+ } :
18
+ stdenv . mkDerivation rec {
19
+ pname = "decibels" ;
20
+ version = "46.0" ;
21
+
22
+ src = fetchFromGitLab {
23
+ domain = "gitlab.gnome.org" ;
24
+ group = "GNOME" ;
25
+ owner = "Incubator" ;
26
+ repo = "decibels" ;
27
+ rev = version ;
28
+ hash = "sha256-3LQQcrpmWrTfk8A8GR+KnxJEB1HGozgEsM+j5ECK8kc=" ;
29
+ fetchSubmodules = true ;
30
+ } ;
31
+
32
+ nativeBuildInputs = [
33
+ appstream
34
+ blueprint-compiler
35
+ desktop-file-utils
36
+ meson
37
+ ninja
38
+ pkg-config
39
+ typescript
40
+ wrapGAppsHook4
41
+ ] ;
42
+
43
+ buildInputs = [
44
+ gjs
45
+ gst_all_1 . gstreamer
46
+ gst_all_1 . gst-plugins-base # for GstVideo
47
+ gst_all_1 . gst-plugins-bad # for GstPlay
48
+ gst_all_1 . gst-plugins-good # for scaletempo
49
+ libadwaita
50
+ ] ;
51
+
52
+ # NOTE: this is applied after install to ensure `tsc` doesn't
53
+ # mess with us
54
+ #
55
+ # gjs uses the invocation name to add gresource files
56
+ # to get around this, we set the entry point name manually
57
+ preFixup = ''
58
+ sed -i "1 a imports.package._findEffectiveEntryPointName = () => 'org.gnome.Decibels';" $out/bin/org.gnome.Decibels
59
+ '' ;
60
+
61
+ passthru = {
62
+ updateScript = nix-update-script { } ;
63
+ } ;
64
+
65
+ meta = {
66
+ description = "Play audio files" ;
67
+ homepage = "https://gitlab.gnome.org/GNOME/Incubator/decibels" ;
68
+ license = lib . licenses . gpl3Only ;
69
+ maintainers = with lib . maintainers ; [ getchoo ] ;
70
+ mainProgram = "org.gnome.Decibels" ;
71
+ platforms = lib . platforms . linux ;
72
+ } ;
73
+ }
You can’t perform that action at this time.
0 commit comments