12 , libappindicator-gtk2
18 stdenv.mkDerivation rec {
22 src = fetchFromGitHub {
26 hash = "sha256-4jEF1LdMwaLNF6zvzAuGW8Iu4dzhrFLutX69LwSjTAI=";
41 python3.pkgs.wrapPython
42 (python3.withPackages (pp: with pp; [
55 execLine=$(grep --only-matching --perl-regexp 'Exec=\K(.+)' "$serviceFile")
56 echo "#!${runtimeShell}" > "$program"
57 echo "exec $execLine" >> "$program"
60 substituteInPlace "$serviceFile" \
61 --replace "Exec=$execLine" "Exec=$program"
64 # Extract the exec line into a separate program so that it can be wrapped.
65 mkdir -p "$out/libexec/osdlyrics/"
66 for svcFile in "$out/share/dbus-1/services"/*; do
67 svc=$(basename "$svcFile" ".service")
68 if grep "python" "$svcFile"; then
69 extractExecLine "$svcFile" "$out/libexec/osdlyrics/$svc"
73 for p in "$out/bin/osdlyrics-create-lyricsource" "$out/bin/osdlyrics-daemon" "$out/libexec/osdlyrics"/*; do
75 --prefix PYTHONPATH : "$out/${python3.sitePackages}"
80 description = "Standalone lyrics fetcher/displayer";
81 homepage = "https://github.com/osdlyrics/osdlyrics";
82 license = licenses.gpl3Plus;
83 maintainers = with maintainers; [ pedrohlc ];
84 platforms = platforms.linux;