Unverified Commit 36c226bf authored by Masum Reza's avatar Masum Reza Committed by GitHub
Browse files

Merge pull request #330375 from JohnRTitor/blurredwallpaper

plasma-plugin-blurredwallpaper: init at 3.1.0
parents 202ad936 0510b4f2
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "plasma-plugin-blurredwallpaper";
  version = "3.1.0";

  src = fetchFromGitHub {
    owner = "bouteillerAlan";
    repo = "blurredwallpaper";
    rev = "v${finalAttrs.version}";
    hash = "sha256-+MjnVsGHqitQytxiAH39Kx9SXuTEFfIC14Ayzu4yE4I=";
  };

  installPhase = ''
    runHook preInstall
    install -d $out/share/plasma/wallpapers/a2n.blur{,.plasma5}
    cp -r a2n.blur{,.plasma5} $out/share/plasma/wallpapers/
    runHook postInstall
  '';

  passthru = {
    updateScript = nix-update-script { };
  };

  meta = {
    description = "Plasma 6 wallpaper plugin to blur the wallpaper of active window";
    homepage = "https://github.com/bouteillerAlan/blurredwallpaper";
    license = lib.licenses.gpl3;
    maintainers = with lib.maintainers; [
      dr460nf1r3
      johnrtitor
    ];
    platforms = lib.platforms.linux;
  };
})