Closed Ysujy closed 1 week ago
This error is about the Nixpkgs hyprpaper package. A fix was submitted, and will land in nixos-unstable in a few days at most. This flake already had the fix applied, and you can use it in the meantime.
This flake already had the fix applied, and you can use it in the meantime.
I thought the hyprpaper flake home-manager module had been removed? I believe that the rebuild didn't complete, saying that it has been deprecated when I tried it some time ago.
Yes, but you can use the flake package with the upstream Home Manager hyprpaper module.
Yes, but you can use the flake package with the upstream Home Manager hyprpaper module.
"use the flake package with the upstream Home Manager hyprpaper module." can you tell me more detail on how to do that? I tried
hyprpapr_tmpfix = builtins.fetchGit {
url = "https://github.com/hyprwm/hyprpaper.git";
rev ="1c18ad65032adb891b341292a1edf9e13adf4751";
};
services.hyprpaper = {
enable = true;
#package = pkgs.hyprpaper.overrideAttrs {src = hyprpapr_tmpfix;};
settings = {
splash = false;
splash_offset = 2.0;
preload = [ "${test}" ];
wallpaper = [",${test}"];
};
but this doesn't seem like a correct way.
but this doesn't seem like a correct way.
as a quick workaround you can just add the git to your flake inputs and put this in your overlay:
hyprpaper =
if (lib.hasAttr "hyprpaper" inputs)
then inputs.hyprpaper.packages.${prev.system}.hyprpaper
else prev.hyprpaper;
After fixed just comment out the input (or delete all this).
You can use this method generally for stuff that has a flake and for which you sometimes want to switch between nixpkgs
and git
versions... (better not use for deep dependencies though, it will cause too many rebuilds)
but this doesn't seem like a correct way.
as a quick workaround you can just add the git to your flake inputs and put this in your overlay:
hyprpaper = if (lib.hasAttr "hyprpaper" inputs) then inputs.hyprpaper.packages.${prev.system}.hyprpaper else prev.hyprpaper;
After fixed just comment out the input (or delete all this). You can use this method generally for stuff that has a flake and for which you sometimes want to switch between
nixpkgs
andgit
versions... (better not use for deep dependencies though, it will cause too many rebuilds)
I added the hyprpaper.url
and applied the overlay, but I got another build failure though.
error: builder for '/nix/store/79j2d16flwr56pkfrw8x2907j3q2pld1-xdg-desktop-portal-hyprland-1.3.3.drv' failed with exit code 1;
last 10 log lines:
> -- Generating done (0.0s)
> CMake Warning:
> Manually-specified variables were not used by the project:
>
> BUILD_TESTING
> CMAKE_EXPORT_NO_PACKAGE_REGISTRY
> CMAKE_POLICY_DEFAULT_CMP0025
>
>
> CMake Generate step failed. Build files cannot be regenerated correctly.
For full logs, run 'nix log /nix/store/79j2d16flwr56pkfrw8x2907j3q2pld1-xdg-desktop-portal-hyprland-1.3.3.drv'.
error: 1 dependencies of derivation '/nix/store/510hqm7zahik6y4j50anj3nccyy3cvb5-dbus-1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/34w634df9sj5av7ahy4zby58bdh0kc0v-system-path.drv' failed to build
error (ignored): error: cannot unlink '/tmp/nix-build-nvidia-x11-560.35.03-6.6.48.drv-15/build/NVIDIA-Linux-x86_64-560.35.03': Directory not empty
error: 1 dependencies of derivation '/nix/store/z74krdgqlmra9sx0gkxhzacpld7dima6-nixos-system-nixos-24.11.20240831.12228ff.drv' failed to build
I added the
hyprpaper.url
and applied the overlay, but I got another build failure though.
Ah yes, it seems like another regression (I got it on yesterday's nixpkgs
too); just use the same overlay method for hyprland
and the portal (take the portal from the hyrpland
input too)
The fix was merged into unstable. Should work without any workarounds.
Using the hyprpaper home-manager package.
Trying to rebuild my system after the aforementioned commit results in the following error:
nix log /nix/store/5x6fxsdcnkik3djpvz10baaxghbw6r8k-hyprpaper-0.7.1.drv'
:Thank you in advance!
@fufexan