Skip to content

Instantly share code, notes, and snippets.

@GrahamcOfBorg
Created April 24, 2024 04:49
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 GrahamcOfBorg/90588b590a20fefb644d21bd2e58f0a1 to your computer and use it in GitHub Desktop.
Save GrahamcOfBorg/90588b590a20fefb644d21bd2e58f0a1 to your computer and use it in GitHub Desktop.
nix-env failed:
error:
… while evaluating call site
at «none»:0: (source not available)
… while calling anonymous lambda
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/.gc-of-borg-outpaths.nix:48:12:
47| tweak = lib.mapAttrs
48| (name: val:
| ^
49| if name == "recurseForDerivations" then true
… while evaluating call site
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/lib/attrsets.nix:1248:43:
1247| f:
1248| listToAttrs (map (n: nameValuePair n (f n)) names);
| ^
1249|
… while calling anonymous lambda
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/top-level/release-lib.nix:145:6:
144| testOnCross = crossSystem: metaPatterns: f: forMatchingSystems metaPatterns
145| (system: hydraJob' (f (pkgsForCross crossSystem system)));
| ^
146|
… while evaluating call site
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/top-level/release-lib.nix:145:14:
144| testOnCross = crossSystem: metaPatterns: f: forMatchingSystems metaPatterns
145| (system: hydraJob' (f (pkgsForCross crossSystem system)));
| ^
146|
… while calling 'hydraJob'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/lib/customisation.nix:388:14:
387| */
388| hydraJob = drv:
| ^
389| let
… while evaluating the attribute 'outPath'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/lib/customisation.nix:404:13:
403| value = commonAttrs // {
404| outPath = output.outPath;
| ^
405| drvPath = output.drvPath;
… while evaluating the attribute 'outPath'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/lib/customisation.nix:352:13:
351| drvPath = assert condition; drv.${outputName}.drvPath;
352| outPath = assert condition; drv.${outputName}.outPath;
| ^
353| } //
… while evaluating the attribute 'installPhase' of the derivation 'spectral-language-server-1.0.8-unstable-2023-06-06'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/stdenv/generic/make-derivation.nix:331:7:
330| // (optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
331| name =
| ^
332| let
… while evaluating call site
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/stdenv/generic/make-derivation.nix:562:14:
561| };
562| validity = checkMeta.assertValidity { inherit meta attrs; };
| ^
563|
… while calling 'assertValidity'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/stdenv/generic/check-meta.nix:501:20:
500|
501| assertValidity = { meta, attrs }: let
| ^
502| validity = checkValidity attrs;
… while evaluating call site
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/stdenv/generic/check-meta.nix:502:18:
501| assertValidity = { meta, attrs }: let
502| validity = checkValidity attrs;
| ^
503| inherit (validity) valid;
… while calling anonymous lambda
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/stdenv/generic/check-meta.nix:400:5:
399| in
400| attrs:
| ^
401| # Check meta attribute types first, to make sure it is always called even when there are other issues
… while evaluating call site
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/stdenv/generic/check-meta.nix:414:13:
413| # --- Put checks that can be ignored here ---
414| else if hasDeniedUnfreeLicense attrs && !(hasAllowlistedLicense attrs) then
| ^
415| { valid = "no"; reason = "unfree"; errormsg = "has an unfree license (‘${showLicense attrs.meta.license}’)"; }
… while calling 'hasDeniedUnfreeLicense'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/stdenv/generic/check-meta.nix:121:28:
120| # `allowUnfreePredicate` function.
121| hasDeniedUnfreeLicense = attrs:
| ^
122| hasUnfreeLicense attrs &&
… while evaluating call site
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/stdenv/generic/check-meta.nix:122:5:
121| hasDeniedUnfreeLicense = attrs:
122| hasUnfreeLicense attrs &&
| ^
123| !allowUnfree &&
… while calling 'hasUnfreeLicense'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/stdenv/generic/check-meta.nix:97:22:
96|
97| hasUnfreeLicense = attrs: hasLicense attrs && isUnfree attrs.meta.license;
| ^
98|
… while evaluating call site
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/stdenv/generic/check-meta.nix:97:29:
96|
97| hasUnfreeLicense = attrs: hasLicense attrs && isUnfree attrs.meta.license;
| ^
98|
… while calling 'hasLicense'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/stdenv/generic/check-meta.nix:69:16:
68|
69| hasLicense = attrs:
| ^
70| attrs ? meta.license;
… while evaluating call site
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix:394:12:
393| inherit (nodejs.meta) platforms;
394| } // lib.optionalAttrs (package ? description) { inherit (package) description; }
| ^
395| // lib.optionalAttrs (package ? homepage) { inherit (package) homepage; }
… while calling 'optionalAttrs'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/lib/attrsets.nix:1352:5:
1351| cond:
1352| as:
| ^
1353| if cond then as else {};
… while evaluating call site
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix:269:17:
268| let
269| package = lib.importJSON packageJSON;
| ^
270| pname = attrs.pname or package.name;
… while calling 'importJSON'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/lib/trivial.nix:639:16:
638| */
639| importJSON = path:
| ^
640| builtins.fromJSON (builtins.readFile path);
… while realising the context of path '/nix/store/aiyqhd78ifh6pcwrw7cklxa2hb7w04b6-source/package.json'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/lib/trivial.nix:640:24:
639| importJSON = path:
640| builtins.fromJSON (builtins.readFile path);
| ^
641|
error: path '/nix/store/yw3j1hb1691q13ww80gs4qlb37i6f030-source.drv' is not valid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment