Closed cryptoboy22 closed 1 week ago
@fufexan for nix
In my case it didn't even compile. Probably needs bumping to the latest hl version.
expo? I believe it works, I am using it rn
expo? I believe it works, I am using it rn
2 people here saying it doesn't work. I want it to!
I had that error before. I found that following what it says on this plugin page results in that error. What do you have in your inputs for hyprland? On this page it says, the git plugin page, it says to have this in the inputs hyprland.url = "github:hyprwm/Hyprland"; but I found that is wrong compared to the hyprland docs. Do you have that? Or do you have this hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; ?? the latter for me results in mismatched headers/
I have the correct URL, with git+https
. Just updated the inputs as well, but it still doesn't compile.
I think it is more the ?submodules=1 at the end
I do have it. Literally cloned the repo, nix flake update
d, and did nix build .#hyprexpo -L
.
yeah you probably know more about this stuff than me.
I do have it. Literally cloned the repo,
nix flake update
d, and didnix build .#hyprexpo -L
.
Did you have plugins working before? any of them?
I do have it. Literally cloned the repo,
nix flake update
d, and didnix build .#hyprexpo -L
.Did you have plugins working before? any of them?
I've tested hyprbars and hyprexpo before https://github.com/hyprwm/Hyprland/pull/5999 iirc. They worked fine.
I do have it. Literally cloned the repo,
nix flake update
d, and didnix build .#hyprexpo -L
.Did you have plugins working before? any of them?
I've tested hyprbars and hyprexpo before hyprwm/Hyprland#5999 iirc. They worked fine.
I do success to compile them, but I also got a red warning, that "failed to oad the following plugings" I found the so in right place in nix store. another thing is, the hyprland version is always
Hyprland, built from branch at commit dirty ().
Date:
Tag: , commits:
flags: (if any)
I don't know why. I just use unstable pkgs. I didn't override the package. Shouldn't it be 0.40?
Right, that's a known issue https://github.com/NixOS/nixpkgs/issues/317234. Check with a commit from May 4th (release date of 0.40.0).
Right, that's a known issue NixOS/nixpkgs#317234. Check with a commit from May 4th (release date of 0.40.0).
For the version show problem, I will wait for next version. More important problem is, now hyprland on Nixos can't load many plugins .so file.
Right, that's a known issue NixOS/nixpkgs#317234. Check with a commit from May 4th (release date of 0.40.0).
For the version show problem, I will wait for next version. More important problem is, now hyprland on Nixos can't load many plugins .so file.
so there is just nothing we can do about this? do any plugins compile for you? none i have tried work
@cryptoboy22 on git all plugins build just fine. Should also be fine for 0.41.1. Check its status in Nixpkgs here https://nixpk.gs/pr-tracker.html?pr=319131.
I'm having this same problem, how should we run plugins from NixOS? For me, everything builds just fine, but errors on load with
Any help would be greatly appreciated, thank you!
It's possible that the compiler differs, since we don't explicitly set which stdenv to be used when building the plugins. Try seeing if you can override the plugin with ...hyprexpo.override { stdenv = pkgs.gcc13Stdenv; };
It's possible that the compiler differs, since we don't explicitly set which stdenv to be used when building the plugins. Try seeing if you can override the plugin with
...hyprexpo.override { stdenv = pkgs.gcc13Stdenv; };
one reason of cant load .so file is the version. I have to use package of master branch, which can load the .so file correctly. When i use a lower version(eg 0.40), I can’t. But you know, 0.41 will cause some hand drawing app crash( xournalpp, rnote…), i have to use 0.40. By the way, when i lock to a specific commit, i found hyprutils and some other packages are removed, why is it? Some plugin needs it to compile.
@lVentus hyprutils is very new, that's why it doesn't exist in 0.40.0. Don't know which plugins need hyprutils, but certainly not the ones in this repo. If a plugin needs it, that's a good sign that you should also pin that plugin to an older commit.
@lVentus hyprutils is very new, that's why it doesn't exist in 0.40.0. Don't know which plugins need hyprutils, but certainly not the ones in this repo. If a plugin needs it, that's a good sign that you should also pin that plugin to an older commit.
is hyprutils newer than 0.41.0? When i lock to 0.41.0 release commit, it is also removed.
Yes, it was only introduced in 0.41.1.
Yes, it was only introduced in 0.41.1.
Ah,ok, thanks
I'm having the same problem as @mny3k using hyprexpo. It builds fine but it doesn't load
➜ ~ hyprctl plugin load /nix/store/aqfrikq7c3gkjvljrgzkapsaq5zd3m6c-hyprexpo-0.1/lib/libhyprexpo.so
error in loading plugin, last error: Plugin /nix/store/aqfrikq7c3gkjvljrgzkapsaq5zd3m6c-hyprexpo-0.1/lib/libhyprexpo.so could not be loaded: plugin crashed/threw in main: [he] No fns for hook addDamageEPK4CBox
It worked fine before https://github.com/hyprwm/Hyprland/commit/fb15b7aa2a9bba0f0693f84d0c65d386942583f8 I think. I waited until https://github.com/NixOS/nixpkgs/pull/319131 got merged into nixos-unstable to see if this changes anything but it doesnt. Does this bug belong in this issue or should I open a separate one?
I'm having the same problem as @mny3k using hyprexpo. It builds fine but it doesn't load
➜ ~ hyprctl plugin load /nix/store/aqfrikq7c3gkjvljrgzkapsaq5zd3m6c-hyprexpo-0.1/lib/libhyprexpo.so error in loading plugin, last error: Plugin /nix/store/aqfrikq7c3gkjvljrgzkapsaq5zd3m6c-hyprexpo-0.1/lib/libhyprexpo.so could not be loaded: plugin crashed/threw in main: [he] No fns for hook addDamageEPK4CBox
It worked fine before hyprwm/Hyprland@fb15b7a I think. I waited until NixOS/nixpkgs#319131 got merged into nixos-unstable to see if this changes anything but it doesnt. Does this bug belong in this issue or should I open a separate one?
thats the version "ver" headers mismatch same as mine. Same issue mate.
actually it may be different. Different error. I'll see what mine does now
Managed to make it build and load, but I'll have to scrap all the derivations for new ones. Will do it tomorrow.
For all of you affected though, here's the quick fix:
nix flake lock --override-input hyprland git+https://github.com/hyprwm/hyprland\?submodules=1\&rev=9e781040d9067c2711ec2e9f5b47b76ef70762b3
Apply this patch
diff --git a/flake.nix b/flake.nix
index c504d26..425a002 100644
--- a/flake.nix
+++ b/flake.nix
@@ -48,7 +48,7 @@
borders-plus-plus = callPackage ./borders-plus-plus {};
csgo-vulkan-fix = callPackage ./csgo-vulkan-fix {};
hyprbars = callPackage ./hyprbars {};
- hyprexpo = callPackage ./hyprexpo {};
+ hyprexpo = callPackage ./hyprexpo {stdenv = prev.gcc13Stdenv;};
hyprtrails = callPackage ./hyprtrails {};
hyprwinwrap = callPackage ./hyprwinwrap {};
};
diff --git a/hyprexpo/default.nix b/hyprexpo/default.nix
index 68d19c6..d93641b 100644
--- a/hyprexpo/default.nix
+++ b/hyprexpo/default.nix
@@ -1,14 +1,18 @@
{
lib,
hyprland,
- hyprlandPlugins,
+ stdenv,
}:
-hyprlandPlugins.mkHyprlandPlugin hyprland {
- pluginName = "hyprexpo";
+stdenv.mkDerivation {
+ pname = "hyprexpo";
version = "0.1";
src = ./.;
inherit (hyprland) nativeBuildInputs;
+ buildInputs = lib.concatLists [
+ [hyprland]
+ hyprland.buildInputs
+ ];
meta = with lib; {
homepage = "https://github.com/hyprwm/hyprland-plugins";
For anyone running versioned Hyprland (from Nixpkgs), take a look at https://github.com/NixOS/nixpkgs/pull/321575, and test it if you can.
Managed to make it build and load, but I'll have to scrap all the derivations for new ones. Will do it tomorrow.
For all of you affected though, here's the quick fix:
1. clone hyprland-plugins, checkout [d92d9d6](https://github.com/hyprwm/hyprland-plugins/commit/d92d9d6cd93b731143119cbcab54dcc7a0481131) 2. `nix flake lock --override-input hyprland git+https://github.com/hyprwm/hyprland\?submodules=1\&rev=9e781040d9067c2711ec2e9f5b47b76ef70762b3` 3. Apply this patch
diff --git a/flake.nix b/flake.nix index c504d26..425a002 100644 --- a/flake.nix +++ b/flake.nix @@ -48,7 +48,7 @@ borders-plus-plus = callPackage ./borders-plus-plus {}; csgo-vulkan-fix = callPackage ./csgo-vulkan-fix {}; hyprbars = callPackage ./hyprbars {}; - hyprexpo = callPackage ./hyprexpo {}; + hyprexpo = callPackage ./hyprexpo {stdenv = prev.gcc13Stdenv;}; hyprtrails = callPackage ./hyprtrails {}; hyprwinwrap = callPackage ./hyprwinwrap {}; }; diff --git a/hyprexpo/default.nix b/hyprexpo/default.nix index 68d19c6..d93641b 100644 --- a/hyprexpo/default.nix +++ b/hyprexpo/default.nix @@ -1,14 +1,18 @@ { lib, hyprland, - hyprlandPlugins, + stdenv, }: -hyprlandPlugins.mkHyprlandPlugin hyprland { - pluginName = "hyprexpo"; +stdenv.mkDerivation { + pname = "hyprexpo"; version = "0.1"; src = ./.; inherit (hyprland) nativeBuildInputs; + buildInputs = lib.concatLists [ + [hyprland] + hyprland.buildInputs + ]; meta = with lib; { homepage = "https://github.com/hyprwm/hyprland-plugins";
4. build 5. profit
Quick question, should I still apply that patch if I'm not going to be using hyprexpo?
If you're using it from nixpkgs then no. If you're still using the repo, then yes, as I haven't had time to also update these derivations.
I'm actually not sure I need to rewrite the derivations anymore, now that we have the plugins in Nixpkgs as well.
@fufexan what about this bug https://github.com/hyprwm/hyprland-plugins/issues/175#issuecomment-2180862606? Should I create a separate issue? I think many ppl (me included) are using the git versions of hyprland related stuff. From what I understand the plugins in nixpkgs are only updated along versioned hyprland. Would be great to make the plugins from this repo work as well :)
@vaxerski do plugins need to be updated to work with hyprutils?
I just tried hyprexpo again and now it doesn't even compile anymore..
Apparently helpers/MiscFunctions.hpp
cannot be found
Yeah some changes were made upstream, I'll try to fix it later.
Should be fixed with dbd1f37, let me know.
Now it compiles again but I'm getting the previous error https://github.com/hyprwm/hyprland-plugins/issues/175#issuecomment-2180862606
➜ ~ hyprctl plugin load /nix/store/cs81wyq9dznbbjcfj21lryivk03r0mh9-hyprexpo-0.1/lib/libhyprexpo.so
error in loading plugin, last error: Plugin /nix/store/cs81wyq9dznbbjcfj21lryivk03r0mh9-hyprexpo-0.1/lib/libhyprexpo.so could not be loaded: plugin crashed/threw in main: [he] No fns for hook addDamageEPK4CBox
Try with 135de7b.
Yup works now! :partying_face: Thanks
Hi, I am compiling hyprland plugin hyprexpo. It compiles but fails to initialize complaining (with a red flashing banner and pop up messages) of a version mismatch between the installed hyprland version and headers. I am running nixos. I have followed what it says to do here https://github.com/hyprwm/hyprland-plugins any help would be greatly appreciated.
Dave