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
85 lines
1.7 KiB
Nix
85 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitLab,
|
|
python3Packages,
|
|
wrapGAppsHook4,
|
|
gst_all_1,
|
|
gobject-introspection,
|
|
yt-dlp,
|
|
libadwaita,
|
|
glib-networking,
|
|
nix-update-script,
|
|
}:
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "monophony";
|
|
version = "3.4.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "zehkira";
|
|
repo = "monophony";
|
|
rev = "v${version}";
|
|
hash = "sha256-D/3yJ1KIXF1rv8iH4+HvfD6N94LzkZGRippZj8nk1nQ=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/source";
|
|
|
|
dependencies = with python3Packages; [
|
|
mpris-server
|
|
pygobject3
|
|
ytmusicapi
|
|
];
|
|
|
|
build-system = with python3Packages; [
|
|
pip
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
libadwaita
|
|
# needed for gstreamer https
|
|
glib-networking
|
|
]
|
|
++ (with gst_all_1; [
|
|
gst-plugins-base
|
|
gst-plugins-good
|
|
gstreamer
|
|
]);
|
|
|
|
pythonRelaxDeps = [
|
|
"mpris_server"
|
|
"ytmusicapi"
|
|
];
|
|
|
|
postInstall = ''
|
|
make install prefix=$out
|
|
'';
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=(
|
|
--prefix PATH : "${lib.makeBinPath [ yt-dlp ]}"
|
|
"''${gappsWrapperArgs[@]}"
|
|
)
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Linux app for streaming music from YouTube";
|
|
longDescription = "Monophony is a free and open source Linux app for streaming music from YouTube. It has no ads and does not require an account.";
|
|
homepage = "https://gitlab.com/zehkira/monophony";
|
|
license = lib.licenses.agpl3Plus;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ quadradical ];
|
|
mainProgram = "monophony";
|
|
};
|
|
}
|