Skip to content

nix build and nix develop fail #1

@AleXoundOS

Description

@AleXoundOS
$ nix build --impure
trace: No index state specified for haskell-project, using the latest index state that we know about (2022-03-14T00:00:00Z)!
trace: WARNING: No sha256 found for source-repository-package git@github.com:cotrone/aws-lambda-haskell-runtime.git facd423e92911482d2c4d1f5eabc686c59c19204 download may fail in restricted mode (hydra)
fetching Git repository 'ssh://git@github.com/cotrone/aws-lambda-haskell-runtime.git'fatal: couldn't find remote ref refs/heads/facd423e92911482d2c4d1f5eabc686c59c19204
error:
       … while evaluating the attribute 'packages'

         at /nix/store/sv4wyinlihwwn9rzv7mhivagnmajjxyp-source/overlays/haskell.nix:760:17:

          759|                 #   `nix build .#pkg-name:test:test-name`
          760|                 packages = attrsForAllProjects packagesForProject;
             |                 ^
          761|                 # Used by:

       … while calling the 'listToAttrs' builtin

         at /nix/store/sv4wyinlihwwn9rzv7mhivagnmajjxyp-source/overlays/haskell.nix:748:42:

          747|                     ) (packageNames project);
          748|                 attrsForAllProjects = f: builtins.listToAttrs (
             |                                          ^
          749|                     f "" project

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

       error: program 'git' failed with exit code 128
$ nix develop --impure
trace: No index state specified for haskell-project, using the latest index state that we know about (2022-03-14T00:00:00Z)!
trace: WARNING: No sha256 found for source-repository-package git@github.com:cotrone/aws-lambda-haskell-runtime.git facd423e92911482d2c4d1f5eabc686c59c19204 download may fail in restricted mode (hydra)
fetching Git repository 'ssh://git@github.com/cotrone/aws-lambda-haskell-runtime.git'fatal: couldn't find remote ref refs/heads/facd423e92911482d2c4d1f5eabc686c59c19204
error:
       … while evaluating the attribute 'packages'

         at /nix/store/sv4wyinlihwwn9rzv7mhivagnmajjxyp-source/overlays/haskell.nix:760:17:

          759|                 #   `nix build .#pkg-name:test:test-name`
          760|                 packages = attrsForAllProjects packagesForProject;
             |                 ^
          761|                 # Used by:

       … while calling the 'listToAttrs' builtin

         at /nix/store/sv4wyinlihwwn9rzv7mhivagnmajjxyp-source/overlays/haskell.nix:748:42:

          747|                     ) (packageNames project);
          748|                 attrsForAllProjects = f: builtins.listToAttrs (
             |                                          ^
          749|                     f "" project

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

       error: program 'git' failed with exit code 128

nix develop without --impure also fails.

$ nix --version
nix (Nix) 2.15.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions