Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attribute 'buildInputs' is missing #166

Closed
krscott opened this issue Mar 24, 2024 · 1 comment
Closed

attribute 'buildInputs' is missing #166

krscott opened this issue Mar 24, 2024 · 1 comment

Comments

@krscott
Copy link

krscott commented Mar 24, 2024

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
Copy link
Author

krscott commented Mar 24, 2024

Looks like this is addressed by pending PR #165 already

@krscott krscott closed this as completed Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant