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

Build failure: kanata #339347

Closed
mastermach50 opened this issue Sep 3, 2024 · 1 comment
Closed

Build failure: kanata #339347

mastermach50 opened this issue Sep 3, 2024 · 1 comment
Labels
0.kind: build failure A package fails to build

Comments

@mastermach50
Copy link

Steps To Reproduce

Steps to reproduce the behavior:

  1. build kanata as a nixos option (services.kanata.enable = true;)

Build log

error:
       … while calling the 'head' builtin

         at /nix/store/bd4fmzws6n5542khxbifbkr6nrygi232-source/lib/attrsets.nix:1575:11:

         1574|         || pred here (elemAt values 1) (head values) then
         1575|           head values
             |           ^
         1576|         else

       … while evaluating the attribute 'value'

         at /nix/store/bd4fmzws6n5542khxbifbkr6nrygi232-source/lib/modules.nix:821:9:

          820|     in warnDeprecation opt //
          821|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          822|         inherit (res.defsFinal') highestPrio;

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

       error: attribute 'lib' missing

       at /nix/store/bd4fmzws6n5542khxbifbkr6nrygi232-source/nixos/modules/services/hardware/kanata.nix:118:13:

          117|           ${lib.optionalString (keyboard.port != null) "--port ${toString keyboard.port}"} \
          118|           ${utils.lib.escapeSystemdExecArgs keyboard.extraArgs}
             |             ^
          119|       '';

Additional context

I think this commit from 5 days ago that removes lib is what is causing the attribute lib missing error

Notify maintainers

@bmanuel @jian-lin

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.6, NixOS, 24.11 (Vicuna), 24.11.20240828.71e91c4`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - nixpkgs: `/nix/store/887hpp8a2i99n9jjwcvz6qkhhhqsvzkg-source`

Add a 👍 reaction to issues you find important.

@mastermach50 mastermach50 added the 0.kind: build failure A package fails to build label Sep 3, 2024
@jian-lin
Copy link
Contributor

jian-lin commented Sep 3, 2024

fixed in #338859

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

No branches or pull requests

3 participants