Skip to content

nix develop github:mlabs-haskell/cardano.nix and nix run github:mlabs-haskell/cardano.nix#vm-preview fail #87

Closed
@hhefesto

Description

@hhefesto

Both nix develop github:mlabs-haskell/cardano.nix and nix run github:mlabs-haskell/cardano.nix#vm-preview fail the same way:

❯ nix develop github:mlabs-haskell/cardano.nix       
error: builder for '/nix/store/wr0j247frcblh4v4qczw4dvfsll852dz-nix-tools-0.1.0.0.drv' failed with exit code 1;
       last 16 log lines:
       >
       > trying https://ci.zw3rk.com/build/3108674/download/1/nix-tools-0.1.0.0-x86_64-unknown-linux-musl.tar.gz
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0   150    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (22) The requested URL returned error: 502
       > Warning: Problem : HTTP error. Will retry in 1 seconds. 3 retries left.
       >   0   150    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (22) The requested URL returned error: 502
       > Warning: Problem : HTTP error. Will retry in 2 seconds. 2 retries left.
       >   0   150    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (22) The requested URL returned error: 502
       > Warning: Problem : HTTP error. Will retry in 4 seconds. 1 retries left.
       >   0   150    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (22) The requested URL returned error: 502
       > error: cannot download nix-tools-0.1.0.0 from any mirror
       For full logs, run 'nix log /nix/store/wr0j247frcblh4v4qczw4dvfsll852dz-nix-tools-0.1.0.0.drv'.
error:
       … while evaluating the attribute 'optionalValue.value'
         at /nix/store/vm4qsaala00i8q5js7i3am3w0m766k1d-source/modules.nix:856:5:
          855|
          856|     optionalValue =
             |     ^
          857|       if isDefined then { value = mergedValue; }

       … while evaluating a branch condition
         at /nix/store/vm4qsaala00i8q5js7i3am3w0m766k1d-source/modules.nix:857:7:
          856|     optionalValue =
          857|       if isDefined then { value = mergedValue; }
             |       ^
          858|       else {};

       … while evaluating definitions from `/nix/store/aqnklsijb47x7z816nci9zqg8rjv0wnb-source/modules/transposition.nix':

       … while evaluating the option `perSystem.x86_64-linux.packages':

       … while evaluating definitions from `/nix/store/d75ccs5q2smn9bzh6pld56pcdfip0flx-source/packages/cardano.nix, via option perSystem':

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

       error: 1 dependencies of derivation '/nix/store/y9h638nj6b5bqd7ywh88mcj2rxwhfc9a-cardano-node-plan-to-nix-pkgs.drv' failed to build

Might be related to haskellPackages.nix-tools being marked as broken, but haven't actually looked into it other than trying to build it on my machine with my nixpkgs version:

❯ nix shell nixpkgs#haskellPackages.nix-tools     
error:
       … in the condition of the assert statement
         at /nix/store/8s55w0927lh3mdbkxf434zb0c5hqsz8z-source/lib/customisation.nix:365:17:
          364|     in commonAttrs // {
          365|       drvPath = assert condition; drv.drvPath;
             |                 ^
          366|       outPath = assert condition; drv.outPath;

       … while evaluating the attribute 'handled'
         at /nix/store/8s55w0927lh3mdbkxf434zb0c5hqsz8z-source/pkgs/stdenv/generic/check-meta.nix:507:7:
          506|       # or, alternatively, just output a warning message.
          507|       handled =
             |       ^
          508|         (

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

       error: Package ‘nix-tools-0.1.0.0’ in /nix/store/8s55w0927lh3mdbkxf434zb0c5hqsz8z-source/pkgs/development/haskell-modules/hackage-packages.nix:218851 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

          Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
                then pass `--impure` in order to allow use of environment variables.

       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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions