/ pkgs / hyprspace.nix
hyprspace.nix
 1  {
 2    gcc14Stdenv,
 3    pkgs,
 4  }:
 5  # Build from local PR branch with 0.54 support fixes
 6  gcc14Stdenv.mkDerivation {
 7    pname = "Hyprspace";
 8    version = "0.54.0-pr223";
 9  
10    src = /home/martijn/Code/Hyprspace;
11  
12    nativeBuildInputs = pkgs.hyprland.nativeBuildInputs;
13    buildInputs = [ pkgs.hyprland ] ++ pkgs.hyprland.buildInputs;
14    dontUseCmakeConfigure = true;
15  
16    installFlags = [ "PREFIX=$(out)" ];
17  
18    postInstall = ''
19      mv $out/lib/Hyprspace.so $out/lib/libHyprspace.so
20    '';
21  
22    meta = with pkgs.lib; {
23      homepage = "https://github.com/KZDKM/Hyprspace";
24      description = "Workspace overview plugin for Hyprland (0.54 PR branch)";
25      license = licenses.gpl2Only;
26      platforms = platforms.linux;
27    };
28  }