depot/pkgs/by-name/pl/plattenalbum/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

60 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.2.0";
pyproject = false;
src = fetchFromGitHub {
owner = "SoongNoonien";
repo = "plattenalbum";
rev = "refs/tags/v${version}";
hash = "sha256-WUhKNt6jAKHsLGy862DJqV4S34krNl9y43vyLiq5qss=";
};
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;
};
}