hypr-dynamic-cursors/flake.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

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"];
eachSystem = nixpkgs.lib.genAttrs systems;
pkgsFor = nixpkgs.legacyPackages;
2024-06-28 14:29:12 +02:00
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;
2024-10-27 17:09:48 +01:00
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
'';
};
2024-06-28 14:29:12 +02:00
});
};
}