Skip to content

Commit 6a8ac9e

Browse files
authored
Merge pull request #318708 from getchoo/pkgs/decibels/init
decibels: init at 46.0
2 parents d81e40e + e80ea5f commit 6a8ac9e

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

pkgs/by-name/de/decibels/package.nix

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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+
}

0 commit comments

Comments
 (0)