levnikmyskin / hyprland-virtual-desktops

A plugin for the Hyprland compositor, implementing virtual-desktop functionality.
BSD 3-Clause "New" or "Revised" License
121 stars 9 forks source link

Unable to Build Plugin #58

Open wolfenxx opened 3 months ago

wolfenxx commented 3 months ago

Hey guys

I have a flake.nix set up following your example almost to the letter in here (minor difference being the module is in a separate file) https://github.com/levnikmyskin/hyprland-virtual-desktops?tab=readme-ov-file#installing-on-nixos-with-homemanager, however I'm getting some build errors and I'm not sure how to resolve them 20240818_17h38m16s_grim

flake.nix flake.txt

home.nix home.txt

Any help would be appreciated

levnikmyskin commented 3 months ago

mh these are indeed weird errors. Are you on "rolling" nix os or stable nix os? Also what version of hyprland are you building?

@wiillou as usual, I'll ask for your help regarding nixos stuff :pray:

wolfenxx commented 3 months ago

@levnikmyskin it's unstable nixos nixpkgs.url = "nixpkgs/nixos-unstable"; home-manager.url = "github:nix-community/home-manager"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; hyprland.follows = "hyprland-virtual-desktops/hyprland"; hyprland-virtual-desktops.url = "github:levnikmyskin/hyprland-virtual-desktops"; I've tried rolling with stable release but same issue. I have a feeling there may be "crap" left over in my system from all this experimenting that's causing issues. I wanna confirm in a vm before I nuke my PC but hyprland on a vm is a bit weird

barthofu commented 1 month ago

Hey! Same problem here, i tested with the last version 2.2.4 (which btw shows as 2.2.2 as it has't been updated in the flake.nix file.

barthofu commented 1 month ago

Said nothing, i fixed it by adding inputs.hyprland.follows = "hyprland" in my flake input;

hyprland-virtual-desktops = {
      url = "https://github.com/levnikmyskin/hyprland-virtual-desktops/archive/refs/tags/v2.2.4.tar.gz";
      inputs.hyprland.follows = "hyprland";
};
barthofu commented 1 month ago

Thanks a lot for this plugin btw, it is a life saver!

levnikmyskin commented 1 month ago

yes flake.nix is not really maintained as I'm on arch and not on nixos. Please open a PR if this needs fixing :pray: