depot/third_party/nixpkgs/pkgs/kde/third-party/krohnkite/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

56 lines
1.2 KiB
Nix

{
lib,
buildNpmPackage,
fetchFromGitHub,
nodejs_22,
kwin,
kpackage,
zip,
}:
buildNpmPackage rec {
pname = "krohnkite";
version = "0.9.7";
src = fetchFromGitHub {
owner = "anametologin";
repo = "krohnkite";
rev = "refs/tags/${version}";
hash = "sha256-8A3zW5tK8jK9fSxYx28b8uXGsvxEoUYybU0GaMD2LNw=";
};
npmDepsHash = "sha256-My1goFEoZW9kFA3zb8xKPxAPXm6bypyq+ajPM8zVOHQ=";
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 krohnkite-${version}.kwinscript
kpackagetool6 --type=KWin/Script --install=krohnkite-${version}.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;
};
}