# Rebuilds the Hyprspace plugin against the consumer's Hyprland. Requires # `pkgs.hyprland` to already be in scope (consumers apply the upstream # Hyprland flake overlay first). `src` comes from the hyprspace flake # input pinned in ../flake.nix. { gcc14Stdenv, hyprland, src, }: gcc14Stdenv.mkDerivation { pname = "Hyprspace"; version = "unstable-${src.shortRev or "dirty"}"; inherit src; inherit (hyprland) nativeBuildInputs; buildInputs = [ hyprland ] ++ hyprland.buildInputs; dontUseCmakeConfigure = true; installFlags = [ "PREFIX=$(out)" ]; postInstall = '' mv $out/lib/Hyprspace.so $out/lib/libHyprspace.so ''; }