Closed SimonBrandner closed 3 weeks ago
Running into this as well.
Using the folloiwng two flake inputs:
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1&tag=v0.41.0";
hy3 = {
url = "github:outfoxxed/hy3?ref=hl0.41.0";
inputs.hyprland.follows = "hyprland";
};
building the system configuration...
error: builder for '/nix/store/3l01bvf0kjgfgfga8m4k0kzxvpj778vh-hy3-hl0.41.0.drv' failed with exit code 1;
last 10 log lines:
> | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/f7g04kx8p2gsjalb7fn3xnns8fw71vsi-source/src/Hy3Node.cpp:362:16: note: 'constraint' was declared here
> 362 | double constraint;
> | ^~~~~~~~~~
> [6/7] Building CXX object CMakeFiles/hy3.dir/src/Hy3Layout.cpp.o
> /build/f7g04kx8p2gsjalb7fn3xnns8fw71vsi-source/src/Hy3Layout.cpp: In member function 'bool Hy3Layout::shouldRenderSelected(const PHLWINDOW&)':
> /build/f7g04kx8p2gsjalb7fn3xnns8fw71vsi-source/src/Hy3Layout.cpp:1401:1: warning: control reaches end of non-void function [-Wreturn-type]
> 1401 | }
> | ^
> ninja: build stopped: subcommand failed.
For full logs, run 'nix log /nix/store/3l01bvf0kjgfgfga8m4k0kzxvpj778vh-hy3-hl0.41.0.drv'.
error: 1 dependencies of derivation '/nix/store/lya6j0f0wcvc01v5j0yhnps51f1g08wy-hm_hyprhyprland.conf.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ch5crqadnx7sspfb2h7096m7bmxm0i5w-activation-script.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wyg7z2kzx5f2dycpz61jqj2lcf54ihpc-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/a24a45634jfrdhx6p9b4ml59q19vkcsm-unit-home-manager-ndo.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/g3spa6xibwszriz9y5brgiyk6y9jd7mn-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/d8y55g1qz86pxcsdvriyl8zfk1rc4ig3-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/df72rmsh1292h7cwhzzw0kc85blavycj-nixos-system-ndo4-24.05.20240605.0b8e7a1.drv' failed to build
This is caused by https://github.com/hyprwm/Hyprland/commit/8c64a4bad710fb18e9b84812bd680a89d1e93661, FWIW
yeah, trying the following inputs, i.e. pinning hyprland
to the same commit that hy3@hl0.41.0
is following.
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1&rev=ea2501d4556f84d3de86a4ae2f4b22a474555b9f";
hy3 = {
url = "github:outfoxxed/hy3?ref=hl0.41.0";
inputs.hyprland.follows = "hyprland";
};
Looks like thats a few commits before that one ^^
Yeah that seems to have worked :+1:
Guess @outfoxxed just has to update one more time for 0.41.0
( :sweat_smile: ) for the hyprutil
changes
I think you're using a version of Hyprland before the hyprutils
changes actually... I had to make some changes to the code to fix this: https://github.com/outfoxxed/hy3/pull/121
I did what you suggest and I have got:
Failed to load the following plugins:
/nix/store/0pcqr4zc3in2c5zi33ydlxxwsklv07vg-hy3-hl0.41.0/lib/libhy3.so
Flake:
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
hyprland = {
type = "git";
url = "https://github.com/hyprwm/Hyprland";
submodules = true;
rev="ea2501d4556f84d3de86a4ae2f4b22a474555b9f";
};
hy3 = {
url = "github:outfoxxed/hy3?ref=hl0.41.0";
inputs.hyprland.follows = "hyprland";
};
}
0.41 should be before the hyprutils changes. It builds correctly here. The revision in the hy3 flake matches the one on the hyprland tag.
Argh, wasn't very clear and my bug fix isn't entirely correct... It's failing to build against the newest commit in Hyprland, so the PR should also update the flake.nix
file...
Merged the changes, will try updating everything to latest myself.
Latest works on my machine with the current changes.
@outfoxxed would you mind creating a 0.41.1 release? It would be helpful for Nixpkgs https://github.com/NixOS/nixpkgs/pull/320347#issuecomment-2179680406.
@outfoxxed would you mind creating a 0.41.1 release? It would be helpful for Nixpkgs NixOS/nixpkgs#320347 (comment).
+1, NixOS 24.05 backport is pending due to this not compiling
@fufexan done
Thanks!