hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
306 stars 48 forks source link

NixOS flake build failure #294

Closed Tofixrs closed 2 weeks ago

Tofixrs commented 3 weeks ago

Cant build the package on nixos. Gives me this errror:

 error: attempt to call something which is not a function but a set: { type = "derivation"; __ignoreNulls = true; __structuredAttrs = «thunk»; all = «thunk»; args = «thunk»; buildInputs = «thunk»; builder = «thu
nk»; cmakeFlags = «thunk»; configureFlags = «thunk»; depsBuildBuild = «thunk»; «32 attributes elided» }
       at /nix/store/412wdkdhx8w1ig59cc1l4w2j9knly60k-source/nix/overlays.nix:49:19:
           48|   sdbus-cpp_2 = final: prev: {
           49|     sdbus-cpp_2 = prev.sdbus-cpp_2 or final.sdbus-cpp.overrideAttrs (self: _: {
             |                   ^
           50|       version = "2.0.0";
fufexan commented 3 weeks ago

Do you override the Nixpkgs input of the xdph flake?

fufexan commented 3 weeks ago

I built the latest main just fine, with no modifications.

TheSunCat commented 3 weeks ago

I can repro this using the hyprland flake, both with and without overriding the nixpkgs input:

    hyprland = {
      url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
      inputs.nixpkgs.follows = "nixpkgs";
    };
fufexan commented 3 weeks ago

Should be fixed as of a few minutes ago.

Also @TheSunCat you can revert back to using url = "github:hyprwm/Hyprland".

Tofixrs commented 2 weeks ago

yeah builds fine for me now thanks