nix-community / nixGL

A wrapper tool for nix OpenGL application [maintainer=@guibou]
628 stars 76 forks source link

attribute 'buildInputs' is missing #166

Closed krscott closed 3 months ago

krscott commented 3 months ago

I am using this method wrap binaries. #152 broke my config, giving the error below. I was able to fix the error using (oldAttrs.buildInputs or []). I'm guessing the attribute is missing due to my non-standard usage, though I'm relatively new to nix so I admit I don't fully understand the underlying issue. I'll submit my fix as a PR, but I'm open to alternative solutions.

error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:9:12:
            8|
            9|   strict = derivationStrict drvAttrs;
             |            ^
           10|

       … while evaluating derivation 'home-manager-generation'
         whose name attribute is located at /nix/store/k5l01g2zwhysjyl5zjvg5zxnj0lyxpp1-source/pkgs/stdenv/generic/make-derivation.nix:354:7

       … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
         at /nix/store/k5l01g2zwhysjyl5zjvg5zxnj0lyxpp1-source/pkgs/build-support/trivial-builders/default.nix:68:16:
           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                ^
           69|         passAsFile = [ "buildCommand" ]

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'buildInputs' missing
       at /nix/store/aqf7gfx4d7fz9gqnxsgmg1shs0bfvcc9-source/nixGL.nix:84:31:
           83|           useGLVND = true;
           84|           nativeBuildInputs = oldAttrs.buildInputs ++ [zstd];
             |                               ^
           85|         });
krscott commented 3 months ago

Looks like this is addressed by pending PR #165 already