2024-01-25 14:12:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3Packages
|
|
|
|
}:
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2024-01-25 14:12:00 +00:00
|
|
|
pname = "budgie-media-player-applet";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.0.1";
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zalesyc";
|
|
|
|
repo = "budgie-media-player-applet";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-E4aD7/SJNvWe6B3iX8fUZeZj14+uxjn0s+30BhU0dxE=";
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
glib # glib-compile-schemas
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
python3Packages.wrapPython
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = with python3Packages; [
|
|
|
|
pillow
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2024-04-21 15:54:59 +00:00
|
|
|
substituteInPlace meson.build --replace-fail "/usr" "$out"
|
|
|
|
substituteInPlace meson_post_install.py --replace-fail '"/", "usr"' "\"$out\""
|
2024-01-25 14:12:00 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
buildPythonPath "$out $pythonPath"
|
|
|
|
patchPythonScript "$out/lib/budgie-desktop/plugins/budgie-media-player-applet/applet.py"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Media Control Applet for the Budgie Panel";
|
|
|
|
homepage = "https://github.com/zalesyc/budgie-media-player-applet";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = lib.teams.budgie.members;
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
})
|