Skip to content

devenv fails on MacOS #193

@Schaechtle

Description

@Schaechtle

Here is a user reported problem on MacOS (Ubuntu works fine).

$ devenv shell
• Building shell ...
• Using Cachix: devenv
error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:9:12:
            8|
            9|   strict = derivationStrict drvAttrs;
             |            ^
           10|

       … while evaluating derivation 'devenv-shell'
         whose name attribute is located at «github:NixOS/nixpkgs/f480f9d09e4b4cf87ee6151eba068197125714de»/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'DEVENV_PROFILE' of derivation 'devenv-shell'

       … while evaluating derivation 'devenv-profile'
         whose name attribute is located at «github:NixOS/nixpkgs/f480f9d09e4b4cf87ee6151eba068197125714de»/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'passAsFile' of derivation 'devenv-profile'
         at «github:NixOS/nixpkgs/f480f9d09e4b4cf87ee6151eba068197125714de»/pkgs/build-support/trivial-builders/default.nix:69:9:
           68|         inherit buildCommand name;
           69|         passAsFile = [ "buildCommand" ]
             |         ^
           70|           ++ (derivationArgs.passAsFile or [ ]);

       … from call site
         at «github:cachix/devenv/6b274c61bc67e44885920c4c99389ee777bbce71»/src/modules/top-level.nix:15:13:
           14|     name = "devenv-profile";
           15|     paths = lib.flatten (builtins.map drvOrPackageToPaths config.packages);
             |             ^
           16|     ignoreCollisions = true;

       … while calling 'flatten'
         at «github:NixOS/nixpkgs/f480f9d09e4b4cf87ee6151eba068197125714de»/lib/lists.nix:383:13:
          382|   */
          383|   flatten = x:
             |             ^
          384|     if isList x

       … while calling anonymous lambda
         at «github:NixOS/nixpkgs/f480f9d09e4b4cf87ee6151eba068197125714de»/lib/lists.nix:385:21:
          384|     if isList x
          385|     then concatMap (y: flatten y) x
             |                     ^
          386|     else [x];

       … from call site
         at «github:NixOS/nixpkgs/f480f9d09e4b4cf87ee6151eba068197125714de»/lib/lists.nix:385:24:
          384|     if isList x
          385|     then concatMap (y: flatten y) x
             |                        ^
          386|     else [x];

       … while calling 'flatten'
         at «github:NixOS/nixpkgs/f480f9d09e4b4cf87ee6151eba068197125714de»/lib/lists.nix:383:13:
          382|   */
          383|   flatten = x:
             |             ^
          384|     if isList x

       … while calling 'drvOrPackageToPaths'
         at «github:cachix/devenv/6b274c61bc67e44885920c4c99389ee777bbce71»/src/modules/top-level.nix:8:25:
            7|
            8|   drvOrPackageToPaths = drvOrPackage:
             |                         ^
            9|     if drvOrPackage ? outputs then

       … from call site
         at «github:cachix/devenv/6b274c61bc67e44885920c4c99389ee777bbce71»/src/modules/top-level.nix:9:8:
            8|   drvOrPackageToPaths = drvOrPackage:
            9|     if drvOrPackage ? outputs then
             |        ^
           10|       builtins.map (output: drvOrPackage.${output}) drvOrPackage.outputs

       … while calling anonymous lambda
         at «github:NixOS/nixpkgs/f480f9d09e4b4cf87ee6151eba068197125714de»/lib/types.nix:538:14:
          537|       merge = loc: defs:
          538|         map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
             |              ^
          539|           imap1 (m: def':

       error:
       error: A definition for option `packages."[definition 5-entry 7]"' is not of type `package'. Definition values:
       - In `/nix/store/virtual0000000000000000000000006-source/devenv.nix': null

✖ Command produced the following output:


✔ Building shell in 2.1s.
Error:   × Command `/nix/store/8z5859hmllpvs93jpcwqxvabbgl5mg0h-
  │ nix-2.21-devenv/bin/nix --show-trace --extra-
  │ experimental-features nix-command --extra-experimental-
  │ features flakes --option warn-dirty false --option
  │ eval-cache false --keep-going --max-jobs 5 print-
  │ dev-env --profile /Users/nanami/Documents/研究/
  │ probcomp/GenSQL.structure-learning/.devenv/gc/shell
  │ --option extra-substituters https://devenv.cachix.org/
  │ --option extra-trusted-public-keys devenv.cachix.org-
  │ 1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=` failed
  │ with with exit code 1```

reproduced with devenv 1.0.5 and Nix 2.21.2 (and 2.18.1). 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions