nixpkgs/pkgs/by-name/pl/plattenalbum/package.nix
2024-06-16 14:12:55 +00:00

61 lines
1.2 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
meson,
ninja,
pkg-config,
gobject-introspection,
wrapGAppsHook4,
desktop-file-utils,
libadwaita,
}:
python3Packages.buildPythonApplication rec {
pname = "plattenalbum";
version = "2.1.1";
pyproject = false;
src = fetchFromGitHub {
owner = "SoongNoonien";
repo = "plattenalbum";
rev = "refs/tags/v${version}";
hash = "sha256-M4WjRQQYu8ixUYV6LgiyAPyvCS1Vk+UpLq/Sek0qBlw=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
wrapGAppsHook4
desktop-file-utils
];
buildInputs = [ libadwaita ];
dependencies = with python3Packages; [
pygobject3
mpd2
];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(''${gappsWrapperArgs[@]})
'';
meta = {
description = "Client for the Music Player Daemon (originally named mpdevil)";
homepage = "https://github.com/SoongNoonien/plattenalbum";
changelog = "https://github.com/SoongNoonien/plattenalbum/releases/tag/v${version}";
license = with lib.licenses; [
gpl3Only
cc0
];
mainProgram = "plattenalbum";
maintainers = with lib.maintainers; [ aleksana ];
platforms = lib.platforms.linux;
};
}