Skip to content
Permalink
Browse files

kwin-tiling: init at 2.2

  • Loading branch information
peterhoeg committed Jul 24, 2019
1 parent 80738ed commit a97d0531667367184f3b48a89a5114364bd2681b
Showing with 40 additions and 0 deletions.
  1. +38 −0 pkgs/desktops/plasma-5/kwin/scripts/tiling.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
@@ -0,0 +1,38 @@
{ stdenv, lib, fetchFromGitHub
, kcoreaddons, kwindowsystem, plasma-framework, systemsettings }:

stdenv.mkDerivation rec {
pname = "kwin-tiling";
version = "2.2";

src = fetchFromGitHub {
owner = "faho";
repo = "kwin-tiling";
rev = "v${version}";
sha256 = "1sx64xv7g9yh3j26zxxrbndv79xam9jq0vs00fczgfv2n0m7j7bl";
};

buildInputs = [
kcoreaddons kwindowsystem plasma-framework systemsettings
];

dontBuild = true;

# 1. --global still installs to $HOME/.local/share so we use --packageroot
# 2. plasmapkg2 doesn't copy metadata.desktop into place, so we do that manually
installPhase = ''
runHook preInstall
plasmapkg2 --type kwinscript --install ${src} --packageroot $out/share/kwin/scripts
install -Dm644 ${src}/metadata.desktop $out/share/kservices5/kwin-script-tiling.desktop
runHook postInstalll
'';

meta = {
description = "Tiling script for kwin";
inherit (src.meta) homepage;
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ peterhoeg ];
};
}
plasma-workspace-wallpapers polkit-kde-agent powerdevil sddm-kcm
systemsettings user-manager xdg-desktop-portal-kde;

kwin-tiling = libsForQt5.callPackage ../desktops/plasma-5/kwin/scripts/tiling.nix { };

### SCIENCE

### SCIENCE/CHEMISTY

0 comments on commit a97d053

Please sign in to comment.
You can’t perform that action at this time.