taj-ny / kwin-effects-forceblur

Fork of the KWin Blur effect for KDE Plasma 6 with additional features (including force blur) and bug fixes
GNU General Public License v3.0
165 stars 10 forks source link

Nix package #10

Closed Kasper24 closed 6 months ago

Kasper24 commented 6 months ago

Thanks a lot for this! I packaged it for Nix, maybe others will be interested in this. I'm not sure if all these deps need to be explicitly added, but it works

{ pkgs, lib, }:

pkgs.kdePackages.mkKdeDerivation rec {
  pname = "kwin-forceblur";
  version = "2a967dfa98675bcca65fdd4d5e8801fe10b40e3f";

  src = pkgs.fetchFromGitHub {
    owner = "taj-ny";
    repo = "kwin-forceblur";
    rev = version;
    sha256 = "sha256-PGqQWb1M/mUS4cYUsxeEzA/fSX7a36rKt/Jzc7Hq97Q=";
  };

  extraBuildInputs = with pkgs.kdePackages; [
    qttools
    kglobalaccel
    kwindowsystem
    kconfig
    kconfigwidgets
    kcmutils
    kcrash
    ki18n
    kio
    kcoreaddons
    kwidgetsaddons
    kservice
    knotifications
    kwin
  ];
  extraNativeBuildInputs = with pkgs.kdePackages; [ extra-cmake-modules ];

  meta = with lib; {
    description = ''A fork of the KWin Blur effect for Plasma 6 that allows blurring any
      user-specified window on both X11 and Wayland Resources.'';
    license = licenses.gpl3;
    maintainers = with maintainers; [ kasper ]; # edit this?
    homepage = "https://github.com/taj-ny/kwin-forceblur";
    inherit (pkgs.kdePackages.kwindowsystem.meta) platforms;
  };
}
taj-ny commented 6 months ago

Added to the README.