2021-09-18 10:52:07 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub
|
2024-05-15 15:35:15 +00:00
|
|
|
, gobject-introspection, makeWrapper, wrapGAppsHook3
|
2021-09-18 10:52:07 +00:00
|
|
|
, gtk3, gst_all_1, python3
|
|
|
|
, gettext, gnome, help2man, keybinder3, libnotify, librsvg, streamripper, udisks, webkitgtk
|
|
|
|
, iconTheme ? gnome.adwaita-icon-theme
|
|
|
|
, deviceDetectionSupport ? true
|
|
|
|
, documentationSupport ? true
|
|
|
|
, notificationSupport ? true
|
|
|
|
, scalableIconSupport ? true
|
|
|
|
, translationSupport ? true
|
|
|
|
, ipythonSupport ? false
|
2023-10-09 19:29:22 +00:00
|
|
|
, cdMetadataSupport ? false
|
2021-09-18 10:52:07 +00:00
|
|
|
, lastfmSupport ? false
|
|
|
|
, lyricsManiaSupport ? false
|
|
|
|
, multimediaKeySupport ? false
|
|
|
|
, musicBrainzSupport ? false
|
|
|
|
, podcastSupport ? false
|
|
|
|
, streamripperSupport ? false
|
|
|
|
, wikipediaSupport ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "exaile";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "4.1.3";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "exaile";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-9SK0nvGdz2j6qp1JTmSuLezxX/kB93CZReSfAnfKZzg=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
makeWrapper
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2021-09-18 10:52:07 +00:00
|
|
|
] ++ lib.optionals documentationSupport [
|
|
|
|
help2man
|
|
|
|
python3.pkgs.sphinx
|
2022-08-12 12:06:08 +00:00
|
|
|
python3.pkgs.sphinx-rtd-theme
|
2021-09-18 10:52:07 +00:00
|
|
|
] ++ lib.optional translationSupport gettext;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
iconTheme
|
|
|
|
gtk3
|
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
2023-10-09 19:29:22 +00:00
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-ugly
|
|
|
|
gst-libav
|
2021-09-18 10:52:07 +00:00
|
|
|
]) ++ (with python3.pkgs; [
|
|
|
|
bsddb3
|
|
|
|
dbus-python
|
|
|
|
mutagen
|
|
|
|
pygobject3
|
|
|
|
pycairo
|
|
|
|
gst-python
|
|
|
|
]) ++ lib.optional deviceDetectionSupport udisks
|
|
|
|
++ lib.optional notificationSupport libnotify
|
|
|
|
++ lib.optional scalableIconSupport librsvg
|
|
|
|
++ lib.optional ipythonSupport python3.pkgs.ipython
|
2023-10-09 19:29:22 +00:00
|
|
|
++ lib.optional cdMetadataSupport python3.pkgs.discid
|
2021-09-18 10:52:07 +00:00
|
|
|
++ lib.optional lastfmSupport python3.pkgs.pylast
|
2023-10-09 19:29:22 +00:00
|
|
|
++ lib.optional lyricsManiaSupport python3.pkgs.lxml
|
2021-09-18 10:52:07 +00:00
|
|
|
++ lib.optional multimediaKeySupport keybinder3
|
2023-10-09 19:29:22 +00:00
|
|
|
++ lib.optional (musicBrainzSupport || cdMetadataSupport) python3.pkgs.musicbrainzngs
|
2021-09-18 10:52:07 +00:00
|
|
|
++ lib.optional podcastSupport python3.pkgs.feedparser
|
|
|
|
++ lib.optional wikipediaSupport webkitgtk;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2021-09-18 10:52:07 +00:00
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
preCheck = ''
|
|
|
|
substituteInPlace Makefile --replace "PYTHONPATH=$(shell pwd)" "PYTHONPATH=$PYTHONPATH:$(shell pwd)"
|
|
|
|
export PYTEST="py.test"
|
|
|
|
export XDG_CACHE_HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/exaile \
|
|
|
|
--set PYTHONPATH $PYTHONPATH \
|
2022-05-18 14:49:53 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath ([ python3 ] ++ lib.optionals streamripperSupport [ streamripper ]) }
|
2021-09-18 10:52:07 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.exaile.org/";
|
|
|
|
description = "A music player with a simple interface and powerful music management capabilities";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "exaile";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ ryneeverett ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|