diff options
author | Federico Damián Schonborn <fdschonborn@gmail.com> | 2024-01-19 13:23:11 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-20 00:23:11 +0800 |
commit | 47d52594a272bcf5a1f7009aa1ddded711a2fd40 (patch) | |
tree | e61154f6c49c4c5db0cb23d83888be97efd4d11e /pkgs/desktops/budgie | |
parent | 2efbd63dd30f8f45263fb49e6c9b1b66c614b5b4 (diff) |
budgiePlugins.budgie-media-player-applet: init at 1.0.0-unstable-2023-12-31
Signed-off-by: Federico Damián Schonborn <fdschonborn@gmail.com>
Diffstat (limited to 'pkgs/desktops/budgie')
-rw-r--r-- | pkgs/desktops/budgie/plugins/budgie-media-player-applet/default.nix | 50 | ||||
-rw-r--r-- | pkgs/desktops/budgie/plugins/default.nix | 1 |
2 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/desktops/budgie/plugins/budgie-media-player-applet/default.nix b/pkgs/desktops/budgie/plugins/budgie-media-player-applet/default.nix new file mode 100644 index 000000000000..ae3a44f22fd0 --- /dev/null +++ b/pkgs/desktops/budgie/plugins/budgie-media-player-applet/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/desktops/budgie/plugins/default.nix b/pkgs/desktops/budgie/plugins/default.nix index e096802b6600..1958a8ef9ea2 100644 --- a/pkgs/desktops/budgie/plugins/default.nix +++ b/pkgs/desktops/budgie/plugins/default.nix @@ -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 { }; } |