Skip to content

path '~/.gitconfig' can not be resolved in pure mode on nix develop #168

@sarkologist

Description

@sarkologist
$ nix develop --show-trace --extra-experimental-features nix-command --extra-experimental-features flakes .#Frames-921
warning: Using saved setting for 'extra-substituters = https://haskell-language-server.cachix.org' from ~/.local/share/nix/trusted-settings.json.
warning: Using saved setting for 'extra-trusted-public-keys = haskell-language-server.cachix.org-1:juFfHrwkOxqIOZShtC4YC1uT1bBcq2RSvC7OMKx0Nz8=' from ~/.local/share/nix/trusted-settings.json.
error (ignored): error: end of string reached
error: the path '~/.gitconfig' can not be resolved in pure mode

       … while evaluating 'filter'

       at /nix/store/mhpz0d4xpnxnp7grj0yglac8n9jsg3rd-source/lib/sources.nix:92:22:

           91|       inherit (orig) origSrc;
           92|       filter = path: type: filter path type && orig.filter path type;
             |                      ^
           93|       name = if name != null then name else orig.name;

       … from call site

       at /nix/store/mhpz0d4xpnxnp7grj0yglac8n9jsg3rd-source/lib/sources.nix:242:17:

          241|       inherit origSrc filter name;
          242|       outPath = builtins.path { inherit filter name; path = origSrc; };
             |                 ^
          243|     };

       … while adding path '/nix/store/7p1m0wvh7wl4z4byp15q7qfrap0jblcs-source/ghcide'

       at /nix/store/mhpz0d4xpnxnp7grj0yglac8n9jsg3rd-source/lib/sources.nix:242:17:

          241|       inherit origSrc filter name;
          242|       outPath = builtins.path { inherit filter name; path = origSrc; };
             |                 ^
          243|     };

       … while evaluating 'isPath'

       at /nix/store/mhpz0d4xpnxnp7grj0yglac8n9jsg3rd-source/pkgs/development/haskell-modules/lib/compose.nix:50:20:

           49|     overrides: self: super: pkgs.lib.mapAttrs (name: src:
           50|       let isPath = x: builtins.substring 0 1 (toString x) == "/";
             |                    ^
           51|           generateExprs = if isPath src

       … from call site

       at /nix/store/mhpz0d4xpnxnp7grj0yglac8n9jsg3rd-source/pkgs/development/haskell-modules/lib/compose.nix:51:30:

           50|       let isPath = x: builtins.substring 0 1 (toString x) == "/";
           51|           generateExprs = if isPath src
             |                              ^
           52|                              then self.callCabal2nix

       … while evaluating anonymous lambda

       at /nix/store/mhpz0d4xpnxnp7grj0yglac8n9jsg3rd-source/pkgs/development/haskell-modules/lib/compose.nix:49:54:

           48|   packageSourceOverrides =
           49|     overrides: self: super: pkgs.lib.mapAttrs (name: src:
             |                                                      ^
           50|       let isPath = x: builtins.substring 0 1 (toString x) == "/";

       … from call site

       … while evaluating 'overrideCabal'

       at /nix/store/mhpz0d4xpnxnp7grj0yglac8n9jsg3rd-source/pkgs/development/haskell-modules/lib/compose.nix:38:22:

           37|    */
           38|   overrideCabal = f: drv: (drv.override (args: args // {
             |                      ^
           39|     mkDerivation = drv: (args.mkDerivation drv).override f;

       … from call site

       at /nix/store/7p1m0wvh7wl4z4byp15q7qfrap0jblcs-source/flake.nix:142:42:

          141|               # disable all checks for our packages
          142|               builtins.mapAttrs (_: drv: haskell.lib.dontCheck drv)
             |                                          ^
          143|               (lib.composeExtensions

       … while evaluating anonymous lambda

       at /nix/store/7p1m0wvh7wl4z4byp15q7qfrap0jblcs-source/flake.nix:142:37:

          141|               # disable all checks for our packages
          142|               builtins.mapAttrs (_: drv: haskell.lib.dontCheck drv)
             |                                     ^
          143|               (lib.composeExtensions

       … from call site

       … while evaluating anonymous lambda

       at /nix/store/mhpz0d4xpnxnp7grj0yglac8n9jsg3rd-source/pkgs/stdenv/generic/make-derivation.nix:170:13:

          169|       (map (drv: drv.__spliced.hostHost or drv) depsHostHostPropagated)
          170|       (map (drv: drv.crossDrv or drv) propagatedBuildInputs)
             |             ^
          171|     ]

       … from call site

       … while evaluating 'getOutput'

       at /nix/store/mhpz0d4xpnxnp7grj0yglac8n9jsg3rd-source/lib/attrsets.nix:489:23:

          488|   */
          489|   getOutput = output: pkg:
             |                       ^
          490|     if ! pkg ? outputSpecified || ! pkg.outputSpecified

       … from call site

       … while evaluating the attribute 'propagatedBuildInputs' of the derivation 'haskell-language-server-ghc9.2.1-1.6.1.1'

       at /nix/store/mhpz0d4xpnxnp7grj0yglac8n9jsg3rd-source/pkgs/stdenv/generic/make-derivation.nix:205:7:

          204|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          205|       name =
             |       ^
          206|         let

       … while evaluating the attribute 'nativeBuildInputs' of the derivation 'ghc-shell-for-Frames-0.7.3'

       at /nix/store/a33ann70s2kqn8q1h4vv4il56i0lk60g-source/pkgs/stdenv/generic/make-derivation.nix:205:7:

          204|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          205|       name =
             |       ^
          206|         let

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