-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
50 lines (42 loc) · 1.27 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
{
description = "A plugin to make your hyprland cursor more realistic, also adds shake to find";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
hyprland.url = "github:hyprwm/Hyprland";
};
outputs = {
self,
nixpkgs,
...
} @ inputs: let
systems = ["x86_64-linux"];
eachSystem = nixpkgs.lib.genAttrs systems;
pkgsFor = nixpkgs.legacyPackages;
in {
packages = eachSystem (system: {
default = self.packages.${system}.hypr-dynamic-cursors;
hypr-dynamic-cursors = let
inherit (inputs.hyprland.packages.${system}) hyprland;
inherit (pkgsFor.${system}) stdenvNoCC gcc13;
name = "hypr-dynamic-cursors";
in
stdenvNoCC.mkDerivation {
inherit name;
pname = name;
src = ./.;
inherit (hyprland) buildInputs;
nativeBuildInputs = hyprland.nativeBuildInputs ++ [hyprland gcc13];
dontUseCmakeConfigure = true;
dontUseMesonConfigure = true;
dontUseNinjaBuild = true;
dontUseNinjaInstall = true;
installPhase = ''
runHook preInstall
mkdir -p "$out/lib"
cp -r out/* "$out/lib/lib${name}.so"
runHook postInstall
'';
};
});
};
}