Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decibels: init at 46.0 #318708

Merged
merged 1 commit into from
Jul 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions pkgs/by-name/de/decibels/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
lib,
stdenv,
fetchFromGitLab,
appstream,
blueprint-compiler,
desktop-file-utils,
gjs,
gst_all_1,
libadwaita,
meson,
ninja,
pkg-config,
typescript,
wrapGAppsHook4,
nix-update-script,
}:
stdenv.mkDerivation rec {
pname = "decibels";
version = "46.0";

src = fetchFromGitLab {
domain = "gitlab.gnome.org";
group = "GNOME";
owner = "Incubator";
repo = "decibels";
rev = version;
hash = "sha256-3LQQcrpmWrTfk8A8GR+KnxJEB1HGozgEsM+j5ECK8kc=";
fetchSubmodules = true;
};

nativeBuildInputs = [
appstream
blueprint-compiler
desktop-file-utils
meson
ninja
pkg-config
typescript
wrapGAppsHook4
];

buildInputs = [
gjs
gst_all_1.gstreamer
gst_all_1.gst-plugins-base # for GstVideo
gst_all_1.gst-plugins-bad # for GstPlay
gst_all_1.gst-plugins-good # for scaletempo
libadwaita
];

# NOTE: this is applied after install to ensure `tsc` doesn't
# mess with us
#
# gjs uses the invocation name to add gresource files
# to get around this, we set the entry point name manually
preFixup = ''
sed -i "1 a imports.package._findEffectiveEntryPointName = () => 'org.gnome.Decibels';" $out/bin/org.gnome.Decibels
'';

passthru = {
updateScript = nix-update-script { };
};

meta = {
description = "Play audio files";
homepage = "https://gitlab.gnome.org/GNOME/Incubator/decibels";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "org.gnome.Decibels";
platforms = lib.platforms.linux;
};
}