budgiePlugins.budgie-media-player-applet: init at 1.0.0-unstable-2023-12-31

Signed-off-by: Federico Damián Schonborn <fdschonborn@gmail.com>
This commit is contained in:
Federico Damián Schonborn 2024-01-19 13:23:11 -03:00 committed by GitHub
parent 2efbd63dd3
commit 47d52594a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,50 @@
{ lib
, stdenv
, fetchFromGitHub
, glib
, meson
, ninja
, python3Packages
}:
stdenv.mkDerivation {
pname = "budgie-media-player-applet";
version = "1.0.0-unstable-2023-12-31";
src = fetchFromGitHub {
owner = "zalesyc";
repo = "budgie-media-player-applet";
rev = "24500be1e0a1f92968df80f8befdf896723ba8ee";
hash = "sha256-jQgkE6vv8PIcB0MJgfsQvzMRkkMU51Gqefoa2G6YJCw=";
};
nativeBuildInputs = [
glib # glib-compile-schemas
meson
ninja
python3Packages.wrapPython
];
pythonPath = with python3Packages; [
pillow
requests
];
postPatch = ''
substituteInPlace meson.build --replace "/usr" "$out"
substituteInPlace meson_post_install.py --replace '"/", "usr"' "\"$out\""
'';
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;
maintainers = with lib.maintainers; [ federicoschonborn ];
};
}

View file

@ -1,4 +1,5 @@
{ callPackage }: {
budgie-analogue-clock-applet = callPackage ./budgie-analogue-clock-applet { };
budgie-media-player-applet = callPackage ./budgie-media-player-applet { };
budgie-user-indicator-redux = callPackage ./budgie-user-indicator-redux { };
}