forked from vinceliuice/Vimix-cursors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
93 lines (78 loc) · 3 KB
/
flake.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
description = "local packages";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
};
outputs = {self, nixpkgs}:
let
# System types to support.
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
# Helper function to generate an attrset '{ x86_64-linux = f "x86_64-linux"; ... }'.
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in {
packages = forAllSystems (system:
{
vimix-nord-cursors =
let
pkgs = import nixpkgs {inherit system;};
in pkgs.stdenv.mkDerivation {
pname = "vimix-nord-cursors";
version = "1.0";
src = pkgs.fetchFromGitHub {
owner = "tristanRW";
repo = "Vimix-nord-cursors";
rev = "v1.0";
sha256 = "sha256-vgerrPCoECm+cChfQN0VcqEeGT3wTg5E2l5a5Sr3cfQ=";
};
installPhase = ''
install -dm 0755 $out/share/icons
cp -pr dist/ $out/share/icons/vimix-nord-cursors
mv $out/share/icons/vimix-nord-cursors/index.theme $out/share/icons/vimix-nord-cursors/cursor.theme
cp -pr dist-white/ $out/share/icons/vimix-nord-white-cursors
mv $out/share/icons/vimix-nord-white-cursors/index.theme $out/share/icons/vimix-nord-white-cursors/cursor.theme
'';
meta = with pkgs.lib; {
description = "Cursor theme using the Nord color palette based on Vimix";
homepage = "https://github.com/tristanRW/Vimix-nord-cursors";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [
tristanRW
];
};
};
});
legacyPackages = forAllSystems (system:
{
vimix-nord-cursors =
let
pkgs = import nixpkgs {inherit system;};
in pkgs.stdenv.mkDerivation {
pname = "vimix-nord-cursors";
version = "1.0";
src = pkgs.fetchFromGitHub {
owner = "tristanRW";
repo = "Vimix-nord-cursors";
rev = "v1.0";
sha256 = "sha256-vgerrPCoECm+cChfQN0VcqEeGT3wTg5E2l5a5Sr3cfQ=";
};
installPhase = ''
install -dm 0755 $out/share/icons
cp -pr dist/ $out/share/icons/vimix-nord-cursors
mv $out/share/icons/vimix-nord-cursors/index.theme $out/share/icons/vimix-nord-cursors/cursor.theme
cp -pr dist-white/ $out/share/icons/vimix-nord-white-cursors
mv $out/share/icons/vimix-nord-white-cursors/index.theme $out/share/icons/vimix-nord-white-cursors/cursor.theme
'';
meta = with pkgs.lib; {
description = "Cursor theme using the Nord color palette based on Vimix";
homepage = "https://github.com/tristanRW/Vimix-nord-cursors";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [
tristanRW
];
};
};
});
};
}