From 13ba5dda40aa9ef0852e82ff5525e19f7a20dc5c Mon Sep 17 00:00:00 2001 From: Dominic Delabruere Date: Sun, 19 Jun 2022 22:49:58 -0400 Subject: [PATCH] deadbeefPlugins.musical-spectrum: init at unstable-2020-07-01 --- .../deadbeef/plugins/musical-spectrum.nix | 42 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/applications/audio/deadbeef/plugins/musical-spectrum.nix diff --git a/pkgs/applications/audio/deadbeef/plugins/musical-spectrum.nix b/pkgs/applications/audio/deadbeef/plugins/musical-spectrum.nix new file mode 100644 index 000000000000..de371bfb552d --- /dev/null +++ b/pkgs/applications/audio/deadbeef/plugins/musical-spectrum.nix @@ -0,0 +1,42 @@ +{ deadbeef +, fetchFromGitHub +, fftw +, glib +, gtk3 +, lib +, pkg-config +, stdenv +}: + +stdenv.mkDerivation rec { + pname = "deadbeef-musical-spectrum-plugin"; + version = "unstable-2020-07-01"; + + src = fetchFromGitHub { + owner = "cboxdoerfer"; + repo = "ddb_musical_spectrum"; + rev = "a97fd4e1168509911ab43ba32d815b5489000a06"; + sha256 = "0p33wyqi27y0q1mvjv5nn6l3vvqlg6b8yd6k2l07bax670bl0q3g"; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ deadbeef fftw glib gtk3 ]; + makeFlags = [ "gtk3" ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/lib/deadbeef + install -v -c -m 644 gtk3/ddb_vis_musical_spectrum_GTK3.so $out/lib/deadbeef/ + + runHook postInstall + ''; + + meta = with lib; { + description = "Musical spectrum plugin for the DeaDBeeF music player"; + homepage = "https://github.com/cboxdoerfer/ddb_musical_spectrum"; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = [ maintainers.ddelabru ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f32d5264aebb..198a6e90c461 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25921,6 +25921,7 @@ with pkgs; headerbar-gtk3 = callPackage ../applications/audio/deadbeef/plugins/headerbar-gtk3.nix { }; lyricbar = callPackage ../applications/audio/deadbeef/plugins/lyricbar.nix { }; mpris2 = callPackage ../applications/audio/deadbeef/plugins/mpris2.nix { }; + musical-spectrum = callPackage ../applications/audio/deadbeef/plugins/musical-spectrum.nix { }; statusnotifier = callPackage ../applications/audio/deadbeef/plugins/statusnotifier.nix { }; };