mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
97 lines
2.1 KiB
Nix
97 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
wrapGAppsHook3,
|
|
gettext,
|
|
python3Packages,
|
|
adwaita-icon-theme,
|
|
gtk3,
|
|
glib,
|
|
gdk-pixbuf,
|
|
gsettings-desktop-schemas,
|
|
gobject-introspection,
|
|
}:
|
|
|
|
let
|
|
inherit (python3Packages)
|
|
buildPythonApplication
|
|
isPy3k
|
|
dbus-python
|
|
pygobject3
|
|
mpd2
|
|
setuptools
|
|
;
|
|
in
|
|
buildPythonApplication rec {
|
|
pname = "sonata";
|
|
version = "1.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "multani";
|
|
repo = "sonata";
|
|
rev = "v${version}";
|
|
sha256 = "0rl8w7s2asff626clzfvyz987l2k4ml5dg417mqp9v8a962q0v2x";
|
|
};
|
|
|
|
disabled = !isPy3k;
|
|
|
|
nativeBuildInputs = [
|
|
gettext
|
|
gobject-introspection
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
adwaita-icon-theme
|
|
gsettings-desktop-schemas
|
|
gtk3
|
|
gdk-pixbuf
|
|
];
|
|
|
|
# The optional tagpy dependency (for editing metadata) is not yet
|
|
# included because it's difficult to build.
|
|
pythonPath = [
|
|
dbus-python
|
|
mpd2
|
|
pygobject3
|
|
setuptools
|
|
];
|
|
|
|
postPatch = ''
|
|
# Remove "Local MPD" tab which is not suitable for NixOS.
|
|
sed -i '/localmpd/d' sonata/consts.py
|
|
'';
|
|
|
|
meta = {
|
|
description = "Elegant client for the Music Player Daemon";
|
|
mainProgram = "sonata";
|
|
longDescription = ''
|
|
Sonata is an elegant client for the Music Player Daemon.
|
|
|
|
Written in Python and using the GTK 3 widget set, its features
|
|
include:
|
|
|
|
- Expanded and collapsed views
|
|
- Automatic remote and local album art
|
|
- Library browsing by folders, or by genre/artist/album
|
|
- User-configurable columns
|
|
- Automatic fetching of lyrics
|
|
- Playlist and stream support
|
|
- Support for editing song tags (not in NixOS version)
|
|
- Drag and drop to copy files
|
|
- Popup notification
|
|
- Library and playlist searching, filter as you type
|
|
- Audioscrobbler (last.fm) 1.2 support
|
|
- Multiple MPD profiles
|
|
- Keyboard friendly
|
|
- Support for multimedia keys
|
|
- Commandline control
|
|
- Available in 24 languages
|
|
'';
|
|
homepage = "https://www.nongnu.org/sonata/";
|
|
license = lib.licenses.gpl3;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|