tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
jasper-gtk-theme: init at 0-unstable-2025-04-02
José Romildo
8 months ago
4dda2e37
3565f259
+102
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
ja
jasper-gtk-theme
package.nix
+102
pkgs/by-name/ja/jasper-gtk-theme/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenvNoCC,
4
4
+
fetchFromGitHub,
5
5
+
gnome-themes-extra,
6
6
+
gtk-engine-murrine,
7
7
+
jdupes,
8
8
+
sassc,
9
9
+
themeVariants ? [ ], # default: teal
10
10
+
colorVariants ? [ ], # default: all
11
11
+
sizeVariants ? [ ], # default: standard
12
12
+
tweaks ? [ ],
13
13
+
}:
14
14
+
15
15
+
let
16
16
+
pname = "jasper-gtk-theme";
17
17
+
18
18
+
in
19
19
+
lib.checkListOfEnum "${pname}: theme variants"
20
20
+
[
21
21
+
"default"
22
22
+
"purple"
23
23
+
"pink"
24
24
+
"red"
25
25
+
"orange"
26
26
+
"yellow"
27
27
+
"green"
28
28
+
"blue"
29
29
+
"grey"
30
30
+
"all"
31
31
+
]
32
32
+
themeVariants
33
33
+
lib.checkListOfEnum
34
34
+
"${pname}: color variants"
35
35
+
[ "standard" "light" "dark" ]
36
36
+
colorVariants
37
37
+
lib.checkListOfEnum
38
38
+
"${pname}: size variants"
39
39
+
[ "standard" "compact" ]
40
40
+
sizeVariants
41
41
+
lib.checkListOfEnum
42
42
+
"${pname}: tweaks"
43
43
+
[
44
44
+
"nord"
45
45
+
"dracula"
46
46
+
"black"
47
47
+
"macos"
48
48
+
]
49
49
+
tweaks
50
50
+
51
51
+
stdenvNoCC.mkDerivation
52
52
+
rec {
53
53
+
inherit pname;
54
54
+
version = "0-unstable-2025-04-02";
55
55
+
56
56
+
src = fetchFromGitHub {
57
57
+
owner = "vinceliuice";
58
58
+
repo = "Jasper-gtk-theme";
59
59
+
rev = "71cb99a6618d839b1058cb8e6660a3b2f63aca70";
60
60
+
hash = "sha256-ZWPUyVszDPUdzttAJuIA9caDpP4SQ7mIbCoczxwvsus=";
61
61
+
};
62
62
+
63
63
+
nativeBuildInputs = [
64
64
+
jdupes
65
65
+
sassc
66
66
+
];
67
67
+
68
68
+
buildInputs = [
69
69
+
gnome-themes-extra
70
70
+
];
71
71
+
72
72
+
propagatedUserEnvPkgs = [
73
73
+
gtk-engine-murrine
74
74
+
];
75
75
+
76
76
+
postPatch = ''
77
77
+
patchShebangs install.sh
78
78
+
'';
79
79
+
80
80
+
installPhase = ''
81
81
+
runHook preInstall
82
82
+
83
83
+
name= HOME="$TMPDIR" ./install.sh \
84
84
+
${lib.optionalString (themeVariants != [ ]) "--theme " + builtins.toString themeVariants} \
85
85
+
${lib.optionalString (colorVariants != [ ]) "--color " + builtins.toString colorVariants} \
86
86
+
${lib.optionalString (sizeVariants != [ ]) "--size " + builtins.toString sizeVariants} \
87
87
+
${lib.optionalString (tweaks != [ ]) "--tweaks " + builtins.toString tweaks} \
88
88
+
--dest $out/share/themes
89
89
+
90
90
+
jdupes --quiet --link-soft --recurse $out/share
91
91
+
92
92
+
runHook postInstall
93
93
+
'';
94
94
+
95
95
+
meta = {
96
96
+
description = "Modern and clean Gtk theme";
97
97
+
homepage = "https://github.com/vinceliuice/Jasper-gtk-theme";
98
98
+
license = lib.licenses.gpl3Only;
99
99
+
platforms = lib.platforms.unix;
100
100
+
maintainers = [ lib.maintainers.romildo ];
101
101
+
};
102
102
+
}