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

nix develop broken in multiple ways #299

Open
turion opened this issue Aug 8, 2023 · 3 comments
Open

nix develop broken in multiple ways #299

turion opened this issue Aug 8, 2023 · 3 comments

Comments

@turion
Copy link
Collaborator

turion commented Aug 8, 2023

  ❯ nix develop
warning: Git tree '/home/turion/haskell/monad-bayes' is dirty
warning: AWS error uploading 'nix-cache-info': Access Denied
error:
       … while calling the 'derivationStrict' builtin

         at //builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'nix-shell'
         whose name attribute is located at /nix/store/xzg2sw1gd8cbnhlijm6kmlf7ajgj3ikb-source/pkgs/stdenv/generic/make-derivation.nix:303:7

       … while evaluating attribute 'nativeBuildInputs' of derivation 'nix-shell'

         at /nix/store/xzg2sw1gd8cbnhlijm6kmlf7ajgj3ikb-source/pkgs/stdenv/generic/make-derivation.nix:347:7:

          346|       depsBuildBuild              = lib.elemAt (lib.elemAt dependencies 0) 0;
          347|       nativeBuildInputs           = lib.elemAt (lib.elemAt dependencies 0) 1;
             |       ^
          348|       depsBuildTarget             = lib.elemAt (lib.elemAt dependencies 0) 2;

       error: attribute 'mkJupyterlabFromPath' missing

       at /nix/store/kl5wh7cjx9a0kwqyrds4jy7i0galcyb1-source/flake.nix:56:18:

           55|     (
           56|       system: let
             |                  ^
           57|         inherit (nixpkgs) lib;

This is probably due to some recent API changes in https://github.com/tweag/jupyenv. These have to be tracked down and fixed. And nix develop should be run on CI as well.

@turion
Copy link
Collaborator Author

turion commented Aug 8, 2023

CC @idontgetoutmuch @reubenharry

@turion
Copy link
Collaborator Author

turion commented Aug 8, 2023

cabal-docspec unfortunately is hard to install in a sustainable way. See phadej/cabal-extras#135. The only way I can think of (apart of building from source) would be pinning a version from a github release as described in https://serokell.io/blog/doctests-in-haskell. The alternative is dropping cabal-docspec altogether, which would be sad, but might be necessary.

@turion
Copy link
Collaborator Author

turion commented Aug 8, 2023

It seems cabal-docspec was added as an experiment in #161, so I'm of a mind to remove it, since it was never tested on CI (and haskell-nix-utils seem unmaintained).

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

1 participant