Skip to content

Instantly share code, notes, and snippets.

@GrahamcOfBorg
Created May 9, 2024 05:28
Show Gist options
  • Save GrahamcOfBorg/26efa8686dd59fefe47e894cbdbe3a60 to your computer and use it in GitHub Desktop.
Save GrahamcOfBorg/26efa8686dd59fefe47e894cbdbe3a60 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-3/.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-3/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-3/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-3/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-3/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-3/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-3/lib/customisation.nix:352:13:
351| drvPath = assert condition; drv.${outputName}.drvPath;
352| outPath = assert condition; drv.${outputName}.outPath;
| ^
353| } //
… while evaluating the attribute 'nativeBuildInputs' of the derivation 'cros-ectool'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/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 «none»:0: (source not available)
… while calling anonymous lambda
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/pkgs/stdenv/generic/make-derivation.nix:302:13:
301| (map (drv: getDev drv.__spliced.buildBuild or drv) (checkDependencyList "depsBuildBuild" depsBuildBuild))
302| (map (drv: getDev drv.__spliced.buildHost or drv) (checkDependencyList "nativeBuildInputs" nativeBuildInputs'))
| ^
303| (map (drv: getDev drv.__spliced.buildTarget or drv) (checkDependencyList "depsBuildTarget" depsBuildTarget))
… while evaluating call site
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/pkgs/stdenv/generic/make-derivation.nix:302:18:
301| (map (drv: getDev drv.__spliced.buildBuild or drv) (checkDependencyList "depsBuildBuild" depsBuildBuild))
302| (map (drv: getDev drv.__spliced.buildHost or drv) (checkDependencyList "nativeBuildInputs" nativeBuildInputs'))
| ^
303| (map (drv: getDev drv.__spliced.buildTarget or drv) (checkDependencyList "depsBuildTarget" depsBuildTarget))
… while calling 'getOutput'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/lib/attrsets.nix:1796:23:
1795| */
1796| getOutput = output: pkg:
| ^
1797| if ! pkg ? outputSpecified || ! pkg.outputSpecified
… while evaluating call site
at «none»:0: (source not available)
… while calling anonymous lambda
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/lib/lists.nix:334:29:
333| */
334| imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
| ^
335|
… while evaluating call site
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/lib/lists.nix:334:32:
333| */
334| imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
| ^
335|
… while calling anonymous lambda
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/pkgs/stdenv/generic/make-derivation.nix:276:15:
275| imap1
276| (index: dep:
| ^
277| if isDerivation dep || dep == null || builtins.isString dep || builtins.isPath dep then dep
… while evaluating call site
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/pkgs/stdenv/generic/make-derivation.nix:277:12:
276| (index: dep:
277| if isDerivation dep || dep == null || builtins.isString dep || builtins.isPath dep then dep
| ^
278| else if isList dep then checkDependencyList' ([index] ++ positions) name dep
… while calling 'isDerivation'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/lib/attrsets.nix:1283:5:
1282| isDerivation =
1283| value: value.type or null == "derivation";
| ^
1284|
error: undefined variable 'libusb'
at /ofborg/checkout/3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/pkgs/by-name/cr/cros-ectool/package.nix:5:59:
4| name = "cros-ectool";
5| nativeBuildInputs = with pkgs; [ cmake ninja pkg-config libusb libftdi1 ];
| ^
6| src = pkgs.fetchFromGitLab {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment