blob: 7bfe963e0e8b4171b18c686166c8241d2772f075 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{ lib
, fetchFromGitHub
, buildNpmPackage
, plasma-framework
}:
# 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 = "0.6.0";
src = fetchFromGitHub {
owner = "zeroxoneafour";
repo = pname;
rev = "v" + version;
hash = "sha256-fZgNOcOq+owmqtplwnxeOIQpWmrga/WitCNCj89O5XA=";
};
npmDepsHash = "sha256-25AtM1FweWIbFot+HUMSPYTu47/0eKNpRWSlBEL0yKk=";
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 = [ 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 5.27+ tiling functionality";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
inherit (plasma-framework.meta) platforms;
};
}
|