Skip to content

Instantly share code, notes, and snippets.

@layus
Created April 28, 2022 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save layus/0c4203d41a67326367caf2086f20a2ab to your computer and use it in GitHub Desktop.
Save layus/0c4203d41a67326367caf2086f20a2ab to your computer and use it in GitHub Desktop.
diff --git a/old.txt b/new.txt
index fe5d9e1..31f76a4 100644
--- a/old.txt
+++ b/new.txt
@@ -1,18 +1,24 @@
error: value is a string while a set was expected
- … while evaluating 'func'
+ … In the right operand of the update (//) operator
+ at /home/layus/projects/poetry2nix-error/basic.nix:13:10:
+ 12| # invalid statement triggering the error
+ 13| {} // s;
+ | ^
+ 14|
+
+ … While evaluating the 'func' function
at /home/layus/projects/poetry2nix-error/basic.nix:5:11:
4| func =
5| arg1: arg2:
| ^
6| let
… from call site
-
at /home/layus/projects/poetry2nix-error/basic.nix:16:3:
15| in
16| func 1 2
| ^
diff --git a/old.txt b/new.txt
index 37a424e..2b2321e 100644
--- a/old.txt
+++ b/new.txt
@@ -1,187 +1,316 @@
error: infinite recursion encountered
- at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/stdenv/generic/make-derivation.nix:249:7:
-
- 248| depsHostHost = lib.elemAt (lib.elemAt dependencies 1) 0;
- 249| buildInputs = lib.elemAt (lib.elemAt dependencies 1) 1;
- | ^
- 250| depsTargetTarget = lib.elemAt (lib.elemAt dependencies 2) 0;
-
… while evaluating the attribute 'buildInputs' of the derivation 'python3.9-flit-core-3.6.0'
-
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-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 'out.outPath'
+ … While calling the 'derivationStrict' builtin
+ at //builtin/derivation.nix:9:12:
+
+ … While evaluating the second argument passed to builtins.getAttr
+ at //builtin/derivation.nix:19:19:
+
+ … While calling the 'getAttr' builtin
+ at //builtin/derivation.nix:19:19:
+ … while evaluating the attribute 'out.outPath'
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/lib/customisation.nix:204:13:
203| drvPath = assert condition; drv.${outputName}.drvPath;
204| outPath = assert condition; drv.${outputName}.outPath;
| ^
205| };
… while evaluating the attribute 'nativeBuildInputs' of the derivation 'python3.9-tomli-2.0.1'
-
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-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 'out.outPath'
+ … While calling the 'derivationStrict' builtin
+ at //builtin/derivation.nix:9:12:
+ … While evaluating the second argument passed to builtins.getAttr
+ at //builtin/derivation.nix:19:19:
+
+ … While calling the 'getAttr' builtin
+ at //builtin/derivation.nix:19:19:
+
+ … while evaluating the attribute 'out.outPath'
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/lib/customisation.nix:204:13:
203| drvPath = assert condition; drv.${outputName}.drvPath;
204| outPath = assert condition; drv.${outputName}.outPath;
| ^
205| };
… while evaluating the attribute 'propagatedBuildInputs' of the derivation 'python3.9-setuptools-scm-6.4.2'
-
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-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 'out.outPath'
+ … While calling the 'derivationStrict' builtin
+ at //builtin/derivation.nix:9:12:
+
+ … While evaluating the second argument passed to builtins.getAttr
+ at //builtin/derivation.nix:19:19:
+ … While calling the 'getAttr' builtin
+ at //builtin/derivation.nix:19:19:
+
+ … while evaluating the attribute 'out.outPath'
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/lib/customisation.nix:204:13:
203| drvPath = assert condition; drv.${outputName}.drvPath;
204| outPath = assert condition; drv.${outputName}.outPath;
| ^
205| };
… while evaluating the attribute 'buildInputs' of the derivation 'python3.9-colorconsole-0.7.2'
-
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-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 'outPath'
+ … While calling the 'derivationStrict' builtin
+ at //builtin/derivation.nix:9:12:
+
+ … While evaluating the second argument passed to builtins.getAttr
+ at //builtin/derivation.nix:19:19:
+
+ … While calling the 'getAttr' builtin
+ at //builtin/derivation.nix:19:19:
+ … while evaluating the attribute 'outPath'
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/lib/customisation.nix:211:7:
210| drvPath = assert condition; drv.drvPath;
211| outPath = assert condition; drv.outPath;
| ^
212| };
- … while evaluating anonymous lambda
+ … While calling the 'elem' builtin
+ at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/lib/lists.nix:646:31:
- at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/lib/lists.nix:646:25:
+ 645| */
+ 646| unique = foldl' (acc: e: if elem e acc then acc else acc ++ [ e ]) [];
+ | ^
+ 647|
+
+ … While evaluating a branch condition
+ at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/lib/lists.nix:646:28:
645| */
646| unique = foldl' (acc: e: if elem e acc then acc else acc ++ [ e ]) [];
| ^
647|
- … from call site
+ … While evaluating the 'anonymous lambda' function
+ at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/lib/lists.nix:646:25:
+ 645| */
+ 646| unique = foldl' (acc: e: if elem e acc then acc else acc ++ [ e ]) [];
+ | ^
+ 647|
+
+ … While calling the 'foldl'' builtin
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/top-level/python-packages.nix:62:6:
61| modules = lib.filter hasPythonModule drvs;
62| in lib.unique ([python] ++ modules ++ lib.concatLists (lib.catAttrs "requiredPythonModules" modules));
| ^
63|
- … while evaluating 'requiredPythonModules'
-
+ … While evaluating the 'requiredPythonModules' function
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/top-level/python-packages.nix:60:27:
59| # Get list of required Python modules given a list of derivations.
60| requiredPythonModules = drvs: let
| ^
61| modules = lib.filter hasPythonModule drvs;
… from call site
-
at /home/layus/projects/poetry2nix-error/poetry2nix/default.nix:242:23:
241| */
242| storePackages = requiredPythonModules (builtins.foldl' (acc: v: acc ++ v) [ ] (lib.attrValues inputAttrs));
| ^
243| in
… while evaluating the attribute 'poetryPackages'
-
at /home/layus/projects/poetry2nix-error/poetry2nix/default.nix:246:7:
245| python = py;
246| poetryPackages = storePackages
| ^
247| ++ lib.optional hasScripts scriptsPackage
- … while evaluating anonymous lambda
+ … While evaluating the second argument passed to builtins.filter
+ at /home/layus/projects/poetry2nix-error/poetry2nix/default.nix:296:17:
+
+ 295| editableAttrs = lib.attrNames editablePackageSources';
+ 296| envPkgs = builtins.filter (drv: ! lib.elem (drv.pname or drv.name or "") editableAttrs) poetryPackages;
+ | ^
+ 297|
+
+ … While calling the 'filter' builtin
+ at /home/layus/projects/poetry2nix-error/poetry2nix/default.nix:296:17:
+
+ 295| editableAttrs = lib.attrNames editablePackageSources';
+ 296| envPkgs = builtins.filter (drv: ! lib.elem (drv.pname or drv.name or "") editableAttrs) poetryPackages;
+ | ^
+ 297|
+ … While evaluating the 'anonymous lambda' function
at /home/layus/projects/poetry2nix-error/poetry2nix/default.nix:299:39:
298| in
299| poetryPython.python.withPackages (ps: envPkgs ++ (extraPackages ps));
| ^
300|
… from call site
-
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/development/interpreters/python/with-packages.nix:3:19:
2|
3| f: let packages = f pythonPackages; in buildEnv.override { extraLibs = packages; }
| ^
- … while evaluating 'requiredPythonModules'
+ … While evaluating the second argument passed to builtins.filter
+ at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/top-level/python-packages.nix:61:15:
+
+ 60| requiredPythonModules = drvs: let
+ 61| modules = lib.filter hasPythonModule drvs;
+ | ^
+ 62| in lib.unique ([python] ++ modules ++ lib.concatLists (lib.catAttrs "requiredPythonModules" modules));
+
+ … While calling the 'filter' builtin
+ at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/top-level/python-packages.nix:61:15:
+
+ 60| requiredPythonModules = drvs: let
+ 61| modules = lib.filter hasPythonModule drvs;
+ | ^
+ 62| in lib.unique ([python] ++ modules ++ lib.concatLists (lib.catAttrs "requiredPythonModules" modules));
+
+ … While evaluating the third argument passed to builtins.foldlStrict
+ … While calling the 'foldl'' builtin
+ at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/top-level/python-packages.nix:62:6:
+
+ 61| modules = lib.filter hasPythonModule drvs;
+ 62| in lib.unique ([python] ++ modules ++ lib.concatLists (lib.catAttrs "requiredPythonModules" modules));
+ | ^
+ 63|
+
+ … While evaluating the 'requiredPythonModules' function
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/top-level/python-packages.nix:60:27:
59| # Get list of required Python modules given a list of derivations.
60| requiredPythonModules = drvs: let
| ^
61| modules = lib.filter hasPythonModule drvs;
… from call site
-
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/development/interpreters/python/wrapper.nix:20:13:
19| env = let
20| paths = requiredPythonModules (extraLibs ++ [ python ] ) ;
| ^
21| pythonPath = "${placeholder "out"}/${python.sitePackages}";
- … while evaluating the attribute 'passAsFile'
+ … While evaluating the second argument passed to builtins.map
+ at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/build-support/buildenv/default.nix:59:29:
+
+ 58| nativeBuildInputs buildInputs;
+ 59| pkgs = builtins.toJSON (map (drv: {
+ | ^
+ 60| paths =
+
+ … While calling the 'map' builtin
+ at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/build-support/buildenv/default.nix:59:29:
+
+ 58| nativeBuildInputs buildInputs;
+ 59| pkgs = builtins.toJSON (map (drv: {
+ | ^
+ 60| paths =
+
+ … While calling the 'toJSON' builtin
+ at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/build-support/buildenv/default.nix:59:12:
+
+ 58| nativeBuildInputs buildInputs;
+ 59| pkgs = builtins.toJSON (map (drv: {
+ | ^
+ 60| paths =
+
+ … While calling the 'stringLength' builtin
+ at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/build-support/buildenv/default.nix:77:21:
+ 76| # XXX: The size is somewhat arbitrary
+ 77| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
+ | ^
+ 78| }
+
+ … While calling the 'lessThan' builtin
+ at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/build-support/buildenv/default.nix:77:48:
+
+ 76| # XXX: The size is somewhat arbitrary
+ 77| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
+ | ^
+ 78| }
+
+ … In the argument of the not operator
+
+ … While evaluating a branch condition
+ at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/build-support/buildenv/default.nix:77:18:
+
+ 76| # XXX: The size is somewhat arbitrary
+ 77| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
+ | ^
+ 78| }
+
+ … while evaluating the attribute 'passAsFile'
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/build-support/buildenv/default.nix:77:5:
76| # XXX: The size is somewhat arbitrary
77| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
| ^
78| }
… while evaluating the attribute 'passAsFile' of the derivation 'python3-3.9.11-env'
-
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-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 'buildInputs' of the derivation 'nix-shell'
+ … While calling the 'derivationStrict' builtin
+ at //builtin/derivation.nix:9:12:
+
+ … While evaluating the second argument passed to builtins.getAttr
+ at //builtin/derivation.nix:19:19:
+ … While calling the 'getAttr' builtin
+ at //builtin/derivation.nix:19:19:
+
+ … while evaluating the attribute 'buildInputs' of the derivation 'nix-shell'
at /nix/store/h96rpxzp4q192r3fnwzclg3rmdg4nlqk-source/pkgs/stdenv/generic/make-derivation.nix:205:7:
204| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
205| name =
| ^
206| let
+
+ … While calling the 'derivationStrict' builtin
+ at //builtin/derivation.nix:9:12:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment