hypr-dynamic-cursors/nix/package.nix

30 lines
638 B
Nix
Raw Normal View History

2024-06-28 14:29:12 +02:00
{
inputs,
pkgs,
2024-10-24 21:26:52 +02:00
}: let
inherit (inputs.hyprland.packages.${pkgs.system}) hyprland;
inherit (hyprland) buildInputs nativeBuildInputs;
inherit (pkgs) stdenvNoCC gcc13;
2024-06-28 14:29:12 +02:00
name = "hypr-dynamic-cursors";
2024-10-24 21:26:52 +02:00
in
stdenvNoCC.mkDerivation {
inherit name buildInputs;
src = ./..;
nativeBuildInputs = nativeBuildInputs ++ [hyprland gcc13];
2024-06-28 14:29:12 +02:00
2024-10-24 21:26:52 +02:00
dontUseCmakeConfigure = true;
dontUseMesonConfigure = true;
dontUseNinjaBuild = true;
dontUseNinjaInstall = true;
2024-06-28 14:29:12 +02:00
2024-10-24 21:26:52 +02:00
installPhase = ''
runHook preInstall
2024-06-28 14:29:12 +02:00
2024-10-24 21:26:52 +02:00
mkdir -p "$out/lib"
cp -r out/* "$out/lib/lib${name}.so"
2024-06-28 14:29:12 +02:00
2024-10-24 21:26:52 +02:00
runHook postInstall
'';
}