forked from catppuccin/cursors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
48 lines (45 loc) · 1.02 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
{ lib
, stdenvNoCC
, inkscape
, just
, xcursorgen
, xcur2png
, hyprcursor
, zip
}:
stdenvNoCC.mkDerivation {
name = "catppuccin-cursors";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.intersection
(lib.fileset.fromSource (lib.sources.cleanSource ./.))
(lib.fileset.unions [ ./src ./justfile ./build ./create_zips ./AUTHORS ./LICENSE ]);
};
nativeBuildInputs = [
just
xcursorgen
xcur2png
inkscape
hyprcursor
zip
];
buildPhase = ''
runHook preBuild
patchShebangs .
just all_with_hyprcursor
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;
};
}