diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-07-23 17:55:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 17:55:33 +0200 |
commit | 10e8eba8dbf77d5f93f4986daf81bfb4d7531cd8 (patch) | |
tree | f3ad535e1d619d575d1d710107eed7c4993c5938 /pkgs/applications/audio/deadbeef | |
parent | 42c7bd28e38152523ee8ef5f750f0a7e26aa4e44 (diff) | |
parent | 61742fb3d5f39a0f01c953de8204a077e7c1b2cb (diff) | |
download | nixpkgs-10e8eba8dbf77d5f93f4986daf81bfb4d7531cd8.tar nixpkgs-10e8eba8dbf77d5f93f4986daf81bfb4d7531cd8.tar.gz nixpkgs-10e8eba8dbf77d5f93f4986daf81bfb4d7531cd8.tar.bz2 nixpkgs-10e8eba8dbf77d5f93f4986daf81bfb4d7531cd8.tar.lz nixpkgs-10e8eba8dbf77d5f93f4986daf81bfb4d7531cd8.tar.xz nixpkgs-10e8eba8dbf77d5f93f4986daf81bfb4d7531cd8.tar.zst nixpkgs-10e8eba8dbf77d5f93f4986daf81bfb4d7531cd8.zip |
Merge pull request #130534 from kurnevsky/deadbeef-statusnotifier-plugin
Diffstat (limited to 'pkgs/applications/audio/deadbeef')
-rw-r--r-- | pkgs/applications/audio/deadbeef/plugins/statusnotifier.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/audio/deadbeef/plugins/statusnotifier.nix b/pkgs/applications/audio/deadbeef/plugins/statusnotifier.nix new file mode 100644 index 00000000000..a1ca052f9c6 --- /dev/null +++ b/pkgs/applications/audio/deadbeef/plugins/statusnotifier.nix @@ -0,0 +1,39 @@ +{ lib, stdenv, fetchFromGitHub, pkg-config, deadbeef, gtk3, perl +, libdbusmenu-glib }: + +stdenv.mkDerivation rec { + pname = "deadbeef-statusnotifier-plugin"; + version = "1.6"; + + src = fetchFromGitHub { + owner = "vovochka404"; + repo = "deadbeef-statusnotifier-plugin"; + rev = "v${version}"; + sha256 = "sha256-6WEbY59vPNrL3W5GUwFQJimmSS+td8Ob+G46fPAxfV4="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ deadbeef gtk3 libdbusmenu-glib ]; + + buildFlags = [ "gtk3" ]; + + postPatch = '' + substituteInPlace tools/glib-mkenums \ + --replace /usr/bin/perl "${perl}/bin/perl" + ''; + + installPhase = '' + runHook preInstall + mkdir -p $out/lib/deadbeef + cp build/sni_gtk3.so $out/lib/deadbeef + runHook postInstall + ''; + + meta = with lib; { + description = "DeaDBeeF StatusNotifier Plugin"; + homepage = "https://github.com/vovochka404/deadbeef-statusnotifier-plugin"; + license = licenses.gpl3Plus; + maintainers = [ maintainers.kurnevsky ]; + platforms = platforms.linux; + }; +} |