diff --git a/pkgs/applications/audio/deadbeef/plugins/mpris2.nix b/pkgs/applications/audio/deadbeef/plugins/mpris2.nix new file mode 100644 index 000000000000..1504cce1d582 --- /dev/null +++ b/pkgs/applications/audio/deadbeef/plugins/mpris2.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchurl, pkgconfig, deadbeef, glib }: + +stdenv.mkDerivation rec { + version = "1.8"; + name = "deadbeef-mpris2-plugin-${version}"; + + src = fetchurl { + url = "https://github.com/Serranya/deadbeef-mpris2-plugin/releases/download/v${version}/${name}.tar.xz"; + sha256 = "1xg880zlxbqz7hs5g7xwc128l08j8c3isn45rdi138hi4fqbyjfi"; + }; + + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ deadbeef glib ]; + + meta = with stdenv.lib; { + description = "MPRISv2 plugin for the DeaDBeeF music player"; + homepage = https://github.com/Serranya/deadbeef-mpris2-plugin/; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = [ maintainers.abbradar ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 19353eab4e95..b56f6a8c4240 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11009,6 +11009,8 @@ let pulseSupport = config.pulseaudio or true; }; + deadbeef-mpris2-plugin = callPackage ../applications/audio/deadbeef/plugins/mpris2.nix { }; + dfasma = callPackage ../applications/audio/dfasma { }; dia = callPackage ../applications/graphics/dia {