mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 16:13:21 +02:00
feat: add nix flake (#2)
This commit is contained in:
parent
fa7cab8717
commit
8950c117f7
5 changed files with 337 additions and 0 deletions
25
nix/package.nix
Normal file
25
nix/package.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
}:
|
||||
pkgs.stdenvNoCC.mkDerivation rec {
|
||||
name = "hypr-dynamic-cursors";
|
||||
pname = name;
|
||||
src = ./..;
|
||||
nativeBuildInputs = inputs.hyprland.packages.${pkgs.system}.hyprland.nativeBuildInputs ++ [inputs.hyprland.packages.${pkgs.system}.hyprland pkgs.gcc13];
|
||||
buildInputs = inputs.hyprland.packages.${pkgs.system}.hyprland.buildInputs;
|
||||
|
||||
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
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue