mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
46 lines
909 B
Nix
46 lines
909 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
kpackage,
|
|
kwin,
|
|
zip,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "kzones";
|
|
version = "0.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gerritdevriese";
|
|
repo = "kzones";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-xqTQiL+7T6p+Y86eC5InAk6waYoM82iFoLflkN6/dG8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
kpackage
|
|
zip
|
|
];
|
|
buildInputs = [ kwin ];
|
|
dontWrapQtApps = true;
|
|
|
|
buildFlags = [ "build" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
kpackagetool6 --type=KWin/Script --install=kzones.kwinscript --packageroot=$out/share/kwin/scripts
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "KDE KWin Script for snapping windows into zones";
|
|
homepage = "https://github.com/gerritdevriese/kzones/";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ k900 ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|