Skip to content

Instantly share code, notes, and snippets.

@GrahamcOfBorg
Created January 9, 2023 12:58
Show Gist options
  • Save GrahamcOfBorg/711110c3980555c1f68edce4e03efaa3 to your computer and use it in GitHub Desktop.
Save GrahamcOfBorg/711110c3980555c1f68edce4e03efaa3 to your computer and use it in GitHub Desktop.
nix-env failed:
error: anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/development/compilers/gcc/9/default.nix:1:1 called with unexpected argument 'enableExternalBootstrap'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:80:16:
79| let
80| result = f origArgs;
| ^
81|
… while calling 'makeOverridable'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:78:24:
77| */
78| makeOverridable = f: origArgs:
| ^
79| let
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:88:41:
87| # Re-call the function but with different arguments
88| overrideArgs = copyArgs (newArgs: makeOverridable f (overrideWith newArgs));
| ^
89| # Change the result of the function call by applying g to it
… while calling anonymous lambda
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:88:32:
87| # Re-call the function but with different arguments
88| overrideArgs = copyArgs (newArgs: makeOverridable f (overrideWith newArgs));
| ^
89| # Change the result of the function call by applying g to it
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/stdenv/linux/default.nix:309:26:
308| ${localSystem.libc} = getLibc prevStage;
309| gcc-unwrapped = (prev.gcc-unwrapped.override {
| ^
310| enableExternalBootstrap = enableGccExternalBootstrapForStdenv;
… while evaluating the attribute 'gcc-unwrapped'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/stdenv/linux/default.nix:309:9:
308| ${localSystem.libc} = getLibc prevStage;
309| gcc-unwrapped = (prev.gcc-unwrapped.override {
| ^
310| enableExternalBootstrap = enableGccExternalBootstrapForStdenv;
… while evaluating the attribute 'gcc-unwrapped'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/stdenv/linux/default.nix:329:26:
328| overrides = self: super: {
329| inherit (prevStage)
| ^
330| ccWrapperStdenv
… while evaluating the attribute 'cc.nativeTools'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/stdenv/generic/default.nix:165:14:
164|
165| inherit cc hasCC;
| ^
166|
… while calling anonymous lambda
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/build-support/cc-wrapper/default.nix:8:1:
7|
8| { name ? ""
| ^
9| , lib
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:80:16:
79| let
80| result = f origArgs;
| ^
81|
… while calling 'makeOverridable'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:78:24:
77| */
78| makeOverridable = f: origArgs:
| ^
79| let
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:179:34:
178|
179| in if missingArgs == [] then makeOverridable f allArgs else throw error;
| ^
180|
… while calling 'callPackageWith'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:128:35:
127| */
128| callPackageWith = autoArgs: fn: args:
| ^
129| let
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/top-level/all-packages.nix:15845:7:
15844| } @ extraArgs:
15845| callPackage ../build-support/cc-wrapper (let self = {
| ^
15846| nativeTools = stdenv.targetPlatform == stdenv.hostPlatform && stdenv.cc.nativeTools or false;
… while calling 'wrapCCWith'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/top-level/all-packages.nix:15826:5:
15825| wrapCCWith =
15826| { cc
| ^
15827| , # This should be the only bintools runtime dep with this sort of logic. The
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/top-level/all-packages.nix:15857:16:
15856|
15857| wrapCC = cc: wrapCCWith {
| ^
15858| inherit cc;
… while calling 'wrapCC'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/top-level/all-packages.nix:15857:12:
15856|
15857| wrapCC = cc: wrapCCWith {
| ^
15858| inherit cc;
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/top-level/all-packages.nix:14261:19:
14260|
14261| gcc9 = lowPrio (wrapCC (callPackage ../development/compilers/gcc/9 {
| ^
14262| inherit noSysDirs;
… while calling 'addMetaAttrs'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/meta.nix:15:28:
14| */
15| addMetaAttrs = newAttrs: drv:
| ^
16| drv // { meta = (drv.meta or {}) // newAttrs; };
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/top-level/all-packages.nix:14261:10:
14260|
14261| gcc9 = lowPrio (wrapCC (callPackage ../development/compilers/gcc/9 {
| ^
14262| inherit noSysDirs;
… while evaluating the attribute 'gcc9'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/top-level/all-packages.nix:14261:3:
14260|
14261| gcc9 = lowPrio (wrapCC (callPackage ../development/compilers/gcc/9 {
| ^
14262| inherit noSysDirs;
… while evaluating the attribute 'gcc'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/top-level/all-packages.nix:14063:7:
14062| in {
14063| gcc = pkgs.${"gcc${numS}"};
| ^
14064| gccFun = callPackage (../development/compilers/gcc + "/${numS}");
… while evaluating the attribute 'gcc-unwrapped.override'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/top-level/all-packages.nix:14066:3:
14065| }) gcc gccFun;
14066| gcc-unwrapped = gcc.cc;
| ^
14067|
… while evaluating the attribute 'gcc-unwrapped'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/stdenv/linux/default.nix:409:7:
408| ${localSystem.libc} = getLibc prevStage;
409| gcc-unwrapped =
| ^
410| let makeStaticLibrariesAndMark = pkg:
… while calling anonymous lambda
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/build-support/cc-wrapper/default.nix:8:1:
7|
8| { name ? ""
| ^
9| , lib
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:80:16:
79| let
80| result = f origArgs;
| ^
81|
… while calling 'makeOverridable'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:78:24:
77| */
78| makeOverridable = f: origArgs:
| ^
79| let
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/stdenv/linux/default.nix:478:13:
477|
478| gcc = lib.makeOverridable (import ../../build-support/cc-wrapper) {
| ^
479| nativeTools = false;
… while evaluating the attribute 'gcc'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/stdenv/linux/default.nix:478:7:
477|
478| gcc = lib.makeOverridable (import ../../build-support/cc-wrapper) {
| ^
479| nativeTools = false;
… while evaluating the attribute 'shell'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/stdenv/generic/default.nix:126:14:
125|
126| inherit initialPath shell
| ^
127| defaultNativeBuildInputs defaultBuildInputs;
… while evaluating the attribute 'builder' of the derivation 'ladspa.h-1.15'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/stdenv/generic/make-derivation.nix:279:7:
278| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
279| name =
| ^
280| let
… while evaluating the attribute 'buildInputs' of the derivation 'AMB-plugins-0.8.1'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/stdenv/generic/make-derivation.nix:279:7:
278| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
279| name =
| ^
280| let
… while evaluating the attribute 'outPath'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:215:13:
214| drvPath = assert condition; drv.${outputName}.drvPath;
215| outPath = assert condition; drv.${outputName}.outPath;
| ^
216| };
… while evaluating the attribute 'outPath'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:245:13:
244| value = commonAttrs // {
245| outPath = output.outPath;
| ^
246| drvPath = output.drvPath;
… while calling 'hydraJob'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:229:14:
228| garbage collection. */
229| hydraJob = drv:
| ^
230| let
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/top-level/release-lib.nix:125:14:
124| testOnCross = crossSystem: metaPatterns: f: forMatchingSystems metaPatterns
125| (system: hydraJob' (f (pkgsForCross crossSystem system)));
| ^
126|
… while calling anonymous lambda
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/top-level/release-lib.nix:125:6:
124| testOnCross = crossSystem: metaPatterns: f: forMatchingSystems metaPatterns
125| (system: hydraJob' (f (pkgsForCross crossSystem system)));
| ^
126|
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/attrsets.nix:553:43:
552| f:
553| listToAttrs (map (n: nameValuePair n (f n)) names);
| ^
554|
… while calling anonymous lambda
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/.gc-of-borg-outpaths.nix:47:12:
46| tweak = lib.mapAttrs
47| (name: val:
| ^
48| if name == "recurseForDerivations" then true
… from call site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment