Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildNpmPackage,
|
|
libsForQt5,
|
|
}:
|
|
|
|
# how to update:
|
|
# 1. check out the tag for the version in question
|
|
# 2. run `prefetch-npm-deps package-lock.json`
|
|
# 3. update npmDepsHash with the output of the previous step
|
|
|
|
buildNpmPackage rec {
|
|
pname = "polonium";
|
|
version = "1.0rc";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zeroxoneafour";
|
|
repo = "polonium";
|
|
rev = "v" + version;
|
|
hash = "sha256-AdMeIUI7ZdctpG/kblGdk1DBy31nDyolPVcTvLEHnNs=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-kaT3Uyq+/JkmebakG9xQuR4Kjo7vk6BzI1/LffOj/eo=";
|
|
|
|
dontConfigure = true;
|
|
|
|
# the installer does a bunch of stuff that fails in our sandbox, so just build here and then we
|
|
# manually do the install
|
|
buildFlags = [
|
|
"res"
|
|
"src"
|
|
];
|
|
|
|
nativeBuildInputs = with libsForQt5; [ plasma-framework ];
|
|
|
|
dontNpmBuild = true;
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
plasmapkg2 --install pkg --packageroot $out/share/kwin/scripts
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Auto-tiler that uses KWin 6.0+ tiling functionality";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
peterhoeg
|
|
kotatsuyaki
|
|
HeitorAugustoLN
|
|
];
|
|
inherit (libsForQt5.plasma-framework.meta) platforms;
|
|
};
|
|
}
|