nixpkgs/pkgs/applications/audio/rofi-mpd/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

27 lines
755 B
Nix

{ lib, python3Packages, fetchFromGitHub }:
python3Packages.buildPythonApplication rec {
pname = "rofi-mpd";
version = "2.2.1";
src = fetchFromGitHub {
owner = "JakeStanger";
repo = "Rofi_MPD";
rev = "v${version}";
sha256 = "0jabyn6gqh8ychn2a06xws3avz0lqdnx3qvqkavfd2xr6sp2q7lg";
};
propagatedBuildInputs = with python3Packages; [ mutagen mpd2 toml appdirs ];
# upstream doesn't contain a test suite
doCheck = false;
meta = with lib; {
description = "A rofi menu for interacting with MPD written in Python";
mainProgram = "rofi-mpd";
homepage = "https://github.com/JakeStanger/Rofi_MPD";
license = licenses.mit;
maintainers = with maintainers; [ jakestanger ];
platforms = platforms.all;
};
}