-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdefault.nix
61 lines (55 loc) · 1.13 KB
/
default.nix
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
61
{
lib,
stdenvNoCC,
inkscape,
just,
xcursorgen,
zip,
catppuccin-whiskers,
python3,
python3Packages,
}:
stdenvNoCC.mkDerivation {
name = "catppuccin-cursors";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.intersection (lib.fileset.fromSource (lib.sources.cleanSource ./.)) (
lib.fileset.unions [
./src
./scripts
./justfile
./build
./AUTHORS
./LICENSE
]
);
};
nativeBuildInputs = [
just
xcursorgen
inkscape
zip
catppuccin-whiskers
python3
python3Packages.pyside6
];
buildPhase = ''
runHook preBuild
patchShebangs .
just all
just zip
runHook postBuild
'';
installPhase = ''
# $out is an automatically generated filepath by nix,
# but it's up to you to make it what you need. We'll create a directory at
# that filepath, then copy our sources into it.
mkdir $out
cp -rv ./releases/* $out
'';
meta = {
description = "Catppuccin cursor theme based on Volantes";
homepage = "https://github.com/catppuccin/cursors";
license = lib.licenses.gpl2;
};
}