blob: 662a199f9688c6d877e99889c4008d2ed0b93bfb (
plain)
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
52
53
54
55
56
57
58
59
60
|
{ lib, stdenvNoCC, sass, src }:
let
# Iceberg theme with nightlamp bg
colors = {
base00 = "18191f";
base01 = "17171b";
base02 = "c9cdd7";
base03 = "6b7089";
base04 = "090a10";
base05 = "c6c8d1";
base06 = "d0d2db";
base07 = "27282e";
base08 = "e27878";
base09 = "e2a478";
base0A = "e9b189";
base0B = "b4be82";
base0C = "89b8c2";
base0D = "84a0c6";
base0E = "a093c7";
base0F = "a0a0d3";
};
in
stdenvNoCC.mkDerivation rec {
pname = "phocus";
version = "unstable-2021-05-05";
inherit src;
patchPhase = with colors; ''
runHook prePatch
substituteInPlace scss/gtk-3.0/_colors.scss \
--replace 16161c ${base00} \
--replace 232530 ${base01} \
--replace 2e303e ${base03} \
--replace e95678 ${base08} \
--replace f09383 ${base09} \
--replace fab795 ${base0A} \
--replace 29d398 ${base0B} \
--replace 1eb980 ${base0B} \
--replace 26bbd9 ${base0D} \
--replace ee64ae ${base0E} \
--replace ec6a88 ${base08} \
--replace fdf0ed ${base05} \
--replace aabbcc ${base0D} \
--replace ccbbaa ${base0E}
runHook postPatch
'';
nativeBuildInputs = [ sass ];
installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
meta = with lib; {
description = "phocus with nightlamp (iceberg variant) theme";
homepage = "https://git.sr.ht/~boppy/phocus";
license = [ licenses.mit ];
maintainers = with maintainers; [ boppyt ];
};
}
|