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

Building docs broken on mac #1109

Open
dsalaza4 opened this issue Jun 14, 2023 · 5 comments
Open

Building docs broken on mac #1109

dsalaza4 opened this issue Jun 14, 2023 · 5 comments

Comments

@dsalaza4
Copy link
Contributor

$ m . /docs/dev
...
error: Package ‘python3.8-watchdog-2.1.2’ in /nix/store/kapfg8wxbnxrd74l75j03jj3l7qv2vcw-source/pkgs/development/python-modules/watchdog/default.nix:46 is marked as broken, refusing to evaluate.
@rohaquinlop
Copy link
Contributor

I got several errors running this command on my pc

@dsalaza4
Copy link
Contributor Author

I got several errors running this command on my pc

Can you please share the output for debugging?

@rohaquinlop
Copy link
Contributor

                                    🦄 Makes
                                 v23.06-darwin

────────────────────────────────── Fetching . ──────────────────────────────────

Preparing worktree (detached HEAD de36dbf)
HEAD is now at de36dbf feat(build): #1099 licensing builtin with reuse
/var/folders/md/wydgtw3x7hg1gqnxly1v7nyr0000gn/T/makes-zhyf8b5s

──────────────────────── Building project configuration ────────────────────────

/nix/store/bl06mcy62wa3a955x5iv2jkfn565bbh8-config.json

────────────────────────────── Building /docs/dev ──────────────────────────────

warning: ignoring untrusted substituter 'https://makes.cachix.org', you are not a trusted user.
Run `man nix.conf` for more information on the `substituters` configuration option.
error:
       … while evaluating the attribute 'envEntrypointSetup' of the derivation 'docs-dev'

       at /nix/store/iz7zycjdinl5sld7dm95y2gcbnjgcl2p-makes-zhyf8b5s/src/args/make-derivation/default.nix:92:7:

           91|       builder = "${__nixpkgs__.bash}/bin/bash";
           92|       name = toDerivationName name;
             |       ^
           93|       outputs = ["out"];while evaluating the attribute '__argSearchPaths__' of the derivation 'make-template-for-make-script-for-docs-dev'

       at /nix/store/iz7zycjdinl5sld7dm95y2gcbnjgcl2p-makes-zhyf8b5s/src/args/make-derivation/default.nix:92:7:

           91|       builder = "${__nixpkgs__.bash}/bin/bash";
           92|       name = toDerivationName name;
             |       ^
           93|       outputs = ["out"];while evaluating the attribute '__envTemplate' of the derivation 'make-template-for-make-search-paths'

       at /nix/store/iz7zycjdinl5sld7dm95y2gcbnjgcl2p-makes-zhyf8b5s/src/args/make-derivation/default.nix:92:7:

           91|       builder = "${__nixpkgs__.bash}/bin/bash";
           92|       name = toDerivationName name;
             |       ^
           93|       outputs = ["out"];while evaluating call site

       at «none»:0: (source not available)

       … while calling anonymous lambda

       at /nix/store/iz7zycjdinl5sld7dm95y2gcbnjgcl2p-makes-zhyf8b5s/src/args/make-derivation/default.nix:27:9:

           26|     builtins.mapAttrs
           27|     (k: v: (
             |         ^
           28|       if (hasPrefix "__" k) || (hasPrefix "env" k)

       … while evaluating call site

       at /nix/store/iz7zycjdinl5sld7dm95y2gcbnjgcl2p-makes-zhyf8b5s/src/args/make-template/default.nix:69:16:

           68|           if searchPaths == {}
           69|           then asContent template
             |                ^
           70|           else ''while calling anonymous lambda

       at /nix/store/iz7zycjdinl5sld7dm95y2gcbnjgcl2p-makes-zhyf8b5s/src/args/as-content/default.nix:1:1:

            1| expr:
             | ^
            2| if builtins.isPath expr

       … while evaluating call site

       at «none»:0: (source not available)

       … while calling 'makeSource'

       at /nix/store/iz7zycjdinl5sld7dm95y2gcbnjgcl2p-makes-zhyf8b5s/src/args/make-search-paths/default.nix:39:16:

           38|     else "export ${envVar}=\"${envDrv}${envPath}\"";
           39|   makeSource = envDrv: let
             |                ^
           40|     type = builtins.typeOf envDrv;while evaluating the attribute '__envTemplate' of the derivation 'make-template-for-make-search-paths'

       at /nix/store/iz7zycjdinl5sld7dm95y2gcbnjgcl2p-makes-zhyf8b5s/src/args/make-derivation/default.nix:92:7:

           91|       builder = "${__nixpkgs__.bash}/bin/bash";
           92|       name = toDerivationName name;
             |       ^
           93|       outputs = ["out"];while evaluating call site

       at «none»:0: (source not available)

       … while calling anonymous lambda

       at /nix/store/iz7zycjdinl5sld7dm95y2gcbnjgcl2p-makes-zhyf8b5s/src/args/make-derivation/default.nix:27:9:

           26|     builtins.mapAttrs
           27|     (k: v: (
             |         ^
           28|       if (hasPrefix "__" k) || (hasPrefix "env" k)

       … while evaluating call site

       at /nix/store/iz7zycjdinl5sld7dm95y2gcbnjgcl2p-makes-zhyf8b5s/src/args/make-template/default.nix:69:16:

           68|           if searchPaths == {}
           69|           then asContent template
             |                ^
           70|           else ''while calling anonymous lambda

       at /nix/store/iz7zycjdinl5sld7dm95y2gcbnjgcl2p-makes-zhyf8b5s/src/args/as-content/default.nix:1:1:

            1| expr:
             | ^
            2| if builtins.isPath expr

       … while evaluating call site

       at «none»:0: (source not available)

       … while calling 'makeExport'

       at /nix/store/iz7zycjdinl5sld7dm95y2gcbnjgcl2p-makes-zhyf8b5s/src/args/make-search-paths/default.nix:35:33:

           34| }: let
           35|   makeExport = envVar: envPath: envDrv:
             |                                 ^
           36|     if append

       … while evaluating the attribute 'outPath'

       at /nix/store/kapfg8wxbnxrd74l75j03jj3l7qv2vcw-source/lib/customisation.nix:164:7:

          163|       drvPath = assert condition; drv.drvPath;
          164|       outPath = assert condition; drv.outPath;
             |       ^
          165|     };while evaluating the attribute 'propagatedBuildInputs' of the derivation 'mkdocs-1.2.1'

       at /nix/store/kapfg8wxbnxrd74l75j03jj3l7qv2vcw-source/pkgs/stdenv/generic/make-derivation.nix:203:11:

          202|         // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          203|           name =
             |           ^
          204|             letwhile evaluating the attribute 'out.outPath'

       at /nix/store/kapfg8wxbnxrd74l75j03jj3l7qv2vcw-source/lib/customisation.nix:156:13:

          155|             drvPath = assert condition; drv.${outputName}.drvPath;
          156|             outPath = assert condition; drv.${outputName}.outPath;
             |             ^
          157|           };while evaluating the attribute 'handled'

       at /nix/store/kapfg8wxbnxrd74l75j03jj3l7qv2vcw-source/pkgs/stdenv/generic/check-meta.nix:301:7:

          300|       # Throw an error if trying to evaluate an non-valid derivation
          301|       handled = if !validity.valid
             |       ^
          302|         then handleEvalIssue { inherit meta attrs; } { inherit (validity) reason errormsg; }

       … while evaluating call site

       at /nix/store/kapfg8wxbnxrd74l75j03jj3l7qv2vcw-source/pkgs/stdenv/generic/check-meta.nix:302:14:

          301|       handled = if !validity.valid
          302|         then handleEvalIssue { inherit meta attrs; } { inherit (validity) reason errormsg; }
             |              ^
          303|         else true;while calling 'handleEvalIssue'

       at /nix/store/kapfg8wxbnxrd74l75j03jj3l7qv2vcw-source/pkgs/stdenv/generic/check-meta.nix:188:38:

          187|
          188|   handleEvalIssue = { meta, attrs }: { reason , errormsg ? "" }:
             |                                      ^
          189|     let

       error: Package ‘python3.8-watchdog-2.1.2’ in /nix/store/kapfg8wxbnxrd74l75j03jj3l7qv2vcw-source/pkgs/development/python-modules/watchdog/default.nix:46 is marked as broken, refusing to evaluate.

       a) To temporarily allow broken packages, you can use an environment variable
          for a single invocation of the nix tools.

            $ export NIXPKGS_ALLOW_BROKEN=1

       b) For `nixos-rebuild` you can set
         { nixpkgs.config.allowBroken = true; }
       in configuration.nix to override this.

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
         { allowBroken = true; }
       to ~/.config/nixpkgs/config.nix.

────────────────────────── 😈 Failed with exit code 1 ──────────────────────────

@dsalaza4
Copy link
Contributor Author

It's the same error. I see you're on darwin too. I'll try to get this fixed soon. Thanks!

@rohaquinlop
Copy link
Contributor

You're welcome, if you need something else, you can ask me.

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

No branches or pull requests

2 participants