Files
nixpkgs/pkgs/by-name/tu/turntable/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

78 lines
1.8 KiB
Nix

{
lib,
stdenv,
fetchFromGitea,
meson,
ninja,
pkg-config,
vala,
wrapGAppsHook4,
desktop-file-utils,
libadwaita,
libsoup_3,
json-glib,
libsecret,
glib-networking,
# Per the upstream request. Key owned by Aleksana
lastfmKey ? "b5027c5178ca2abfcc31bd04397c3c0e",
lastfmSecret ? "8d375bdee925a2a35f241c04272bc862",
}:
stdenv.mkDerivation (finalAttrs: {
pname = "turntable";
version = "0.3.3";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "GeopJr";
repo = "Turntable";
tag = "v${finalAttrs.version}";
hash = "sha256-fBduW49eNOEzRVBb72zcB5arTjTiRUy8jE3sSMjPITE=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
vala
wrapGAppsHook4
desktop-file-utils
];
buildInputs = [
libadwaita
libsoup_3
json-glib
libsecret
glib-networking
];
mesonFlags = [
(lib.mesonOption "lastfm_key" lastfmKey)
(lib.mesonOption "lastfm_secret" lastfmSecret)
];
strictDeps = true;
meta = {
description = "Scrobbles your music to multiple services with playback controls for MPRIS players";
longDescription = ''
Keep track of your listening habits by scrobbling them
to last.fm, ListenBrainz, Libre.fm and Maloja at the
same time using your favorite music app's, favorite
music app! Turntable comes with a highly customizable
and sleek design that displays information about the
currently playing song and allows you to control your
music player, allowlist it for scrobbling and manage
your scrobbling accounts. All MPRIS-enabled apps are
supported.
'';
homepage = "https://turntable.geopjr.dev";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ aleksana ];
mainProgram = "dev.geopjr.Turntable";
platforms = lib.platforms.linux;
};
})