From 5d1933e242689aa6c2eb610e8810a5e32c6e40db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrkan=20G=C3=BCr?= Date: Sun, 24 Nov 2019 15:05:07 +0100 Subject: [PATCH] krohnkite: init at 0.5 --- .../plasma-5/kwin/scripts/krohnkite.nix | 39 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/desktops/plasma-5/kwin/scripts/krohnkite.nix diff --git a/pkgs/desktops/plasma-5/kwin/scripts/krohnkite.nix b/pkgs/desktops/plasma-5/kwin/scripts/krohnkite.nix new file mode 100644 index 000000000000..7a7c88b6bcff --- /dev/null +++ b/pkgs/desktops/plasma-5/kwin/scripts/krohnkite.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 141f800b8963..6a5802837f2e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23456,6 +23456,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