56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
nodejs_22,
|
|
kwin,
|
|
kpackage,
|
|
zip,
|
|
}:
|
|
buildNpmPackage rec {
|
|
pname = "krohnkite";
|
|
version = "0.9.8.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "anametologin";
|
|
repo = "krohnkite";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-VVHusFuQ/awfFV4izId7VPYCrS8riTavhpB2KpJ9084=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-k44SltKLR/Y8qWFCLW2jBWElk9JGn+0azQn0G1f0vuY=";
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
nodejs = nodejs_22;
|
|
|
|
nativeBuildInputs = [
|
|
kpackage
|
|
zip
|
|
kwin
|
|
];
|
|
|
|
postPatch = ''
|
|
cp ${./package-lock.json} package-lock.json
|
|
'';
|
|
|
|
npmBuildScript = "tsc";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
substituteInPlace Makefile --replace-fail '7z a -tzip' 'zip -r'
|
|
make KWINPKG_FILE=krohnkite.kwinscript krohnkite.kwinscript
|
|
kpackagetool6 --type=KWin/Script --install=krohnkite.kwinscript --packageroot=$out/share/kwin/scripts
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Dynamic Tiling Extension for KWin 6";
|
|
homepage = "https://github.com/anametologin/krohnkite";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ ben9986 ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|