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 { }; };