2024-06-28 14:29:12 +02:00
|
|
|
{
|
2024-10-24 20:06:40 +00:00
|
|
|
description = "A plugin to make your hyprland cursor more realistic, also adds shake to find";
|
2024-06-28 14:29:12 +02:00
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
2024-10-24 20:06:40 +00:00
|
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
2024-06-28 14:29:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
...
|
|
|
|
} @ inputs: let
|
2024-10-24 20:06:40 +00:00
|
|
|
systems = ["x86_64-linux"];
|
2024-10-27 09:31:41 +01:00
|
|
|
eachSystem = nixpkgs.lib.genAttrs systems;
|
|
|
|
pkgsFor = nixpkgs.legacyPackages;
|
2024-06-28 14:29:12 +02:00
|
|
|
in {
|
2024-10-27 09:31:41 +01:00
|
|
|
packages = eachSystem (system: {
|
|
|
|
default = self.packages.${system}.hypr-dynamic-cursors;
|
|
|
|
hypr-dynamic-cursors = let
|
|
|
|
inherit (inputs.hyprland.packages.${system}) hyprland;
|
2024-12-19 01:12:00 +00:00
|
|
|
inherit (pkgsFor.${system}) stdenvNoCC gcc14;
|
2024-10-27 09:31:41 +01:00
|
|
|
|
|
|
|
name = "hypr-dynamic-cursors";
|
|
|
|
in
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
inherit name;
|
2024-10-27 17:19:24 +01:00
|
|
|
pname = name;
|
2024-10-27 09:31:41 +01:00
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
inherit (hyprland) buildInputs;
|
2024-12-19 01:12:00 +00:00
|
|
|
nativeBuildInputs = hyprland.nativeBuildInputs ++ [hyprland gcc14];
|
2025-07-19 02:05:14 +03:00
|
|
|
enableParallelBuilding = true;
|
2024-10-27 09:31:41 +01:00
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
dontUseMesonConfigure = true;
|
|
|
|
dontUseNinjaBuild = true;
|
|
|
|
dontUseNinjaInstall = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p "$out/lib"
|
2025-07-19 02:05:14 +03:00
|
|
|
cp -r out/dynamic-cursors.so "$out/lib/lib${name}.so"
|
2024-10-27 09:31:41 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
};
|
2024-06-28 14:29:12 +02:00
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|