From e12b4d1105fdc005b9cfef0bce918bf066f32c30 Mon Sep 17 00:00:00 2001 From: Danilo Soares Date: Sat, 15 Mar 2025 14:50:58 -0300 Subject: [PATCH] deadbeefPlugins.waveform-seekbar: init at 0-unstable-2024-11-13 --- .../deadbeef/plugins/waveform-seekbar.nix | 47 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/applications/audio/deadbeef/plugins/waveform-seekbar.nix diff --git a/pkgs/applications/audio/deadbeef/plugins/waveform-seekbar.nix b/pkgs/applications/audio/deadbeef/plugins/waveform-seekbar.nix new file mode 100644 index 000000000000..487a17425917 --- /dev/null +++ b/pkgs/applications/audio/deadbeef/plugins/waveform-seekbar.nix @@ -0,0 +1,47 @@ +{ + lib, + stdenv, + fetchFromGitHub, + deadbeef, + pkg-config, + gtk3, + sqlite, +}: + +stdenv.mkDerivation { + pname = "deadbeef-waveform-seekbar-plugin"; + version = "0-unstable-2024-11-13"; + + # using a fork because original throws a compilation error + src = fetchFromGitHub { + owner = "Jbsco"; + repo = "ddb_waveform_seekbar"; + rev = "2e5ea867a77e37698524d22f41fc59ffae16e63d"; + hash = "sha256-m6lBF+Yq1gah6kjb9VvIsjVg1i++08JPLzcLLMt+8J8="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ + deadbeef + gtk3 + sqlite + ]; + makeFlags = [ "gtk3" ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/lib/deadbeef/ + install -v -c -m 644 gtk3/ddb_misc_waveform_GTK3.so $out/lib/deadbeef/ + + runHook postInstall + ''; + + meta = { + description = "Waveform Seekbar plugin for DeaDBeeF audio player"; + homepage = "https://github.com/cboxdoerfer/ddb_waveform_seekbar"; + license = lib.licenses.gpl2Plus; + platforms = lib.platforms.linux; + maintainers = [ lib.maintainers.deudz ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8027a21d6b80..db02db5a6cd0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13032,6 +13032,7 @@ with pkgs; musical-spectrum = callPackage ../applications/audio/deadbeef/plugins/musical-spectrum.nix { }; statusnotifier = callPackage ../applications/audio/deadbeef/plugins/statusnotifier.nix { }; playlist-manager = callPackage ../applications/audio/deadbeef/plugins/playlist-manager.nix { }; + waveform-seekbar = callPackage ../applications/audio/deadbeef/plugins/waveform-seekbar.nix { }; }; deadbeef-with-plugins = callPackage ../applications/audio/deadbeef/wrapper.nix {