makes icon indicating copy to clipboard operation
makes copied to clipboard

Building docs broken on mac

Open dsalaza4 opened this issue 2 years ago β€’ 5 comments

$ 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.

dsalaza4 avatar Jun 14 '23 16:06 dsalaza4

I got several errors running this command on my pc

rohaquinlop avatar Jun 14 '23 16:06 rohaquinlop

I got several errors running this command on my pc

Can you please share the output for debugging?

dsalaza4 avatar Jun 14 '23 17:06 dsalaza4


                                    πŸ¦„ 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|             let

       … while 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 ──────────────────────────

rohaquinlop avatar Jun 14 '23 17:06 rohaquinlop

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

dsalaza4 avatar Jun 14 '23 17:06 dsalaza4

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

rohaquinlop avatar Jun 14 '23 18:06 rohaquinlop