Merge pull request #74262 from seqizz/g_krohnkite

krohnkite: init at 0.5
This commit is contained in:
Thomas Tuegel 2019-12-07 18:48:34 -06:00 committed by GitHub
commit 86b6ee9825
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ lib, mkDerivation, fetchFromGitHub
, kcoreaddons, kwindowsystem, plasma-framework, systemsettings }:
mkDerivation rec {
pname = "krohnkite";
version = "0.5";
src = fetchFromGitHub {
owner = "esjeon";
repo = "krohnkite";
rev = "v${version}";
sha256 = "0i0xr5aj565dzr72zjg7wmyca2gwg9izhnri63pab5y5gp5zjqn2";
};
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}/res/ --packageroot $out/share/kwin/scripts
install -Dm644 ${src}/res/metadata.desktop $out/share/kservices5/krohnkite.desktop
runHook postInstalll
'';
meta = with lib; {
description = "A dynamic tiling extension for KWin";
license = licenses.mit;
maintainers = with maintainers; [ seqizz ];
inherit (src.meta) homepage;
inherit (kwindowsystem.meta) platforms;
};
}

View file

@ -23471,6 +23471,8 @@ in
kwin-tiling = libsForQt5.callPackage ../desktops/plasma-5/kwin/scripts/tiling.nix { };
krohnkite = libsForQt5.callPackage ../desktops/plasma-5/kwin/scripts/krohnkite.nix { };
### SCIENCE
### SCIENCE/CHEMISTY