Skip to content

Instantly share code, notes, and snippets.

@GrahamcOfBorg
Created October 31, 2024 06:30
Show Gist options
  • Save GrahamcOfBorg/27b0818059e4d2c7731cd6800abdd142 to your computer and use it in GitHub Desktop.
Save GrahamcOfBorg/27b0818059e4d2c7731cd6800abdd142 to your computer and use it in GitHub Desktop.
nix-env failed:
error:
… while calling anonymous lambda
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/.gc-of-borg-outpaths.nix:48:12:
47| tweak = lib.mapAttrs
48| (name: val:
| ^
49| if name == "recurseForDerivations" then true
… from call site
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/lib/attrsets.nix:1248:43:
1247| f:
1248| listToAttrs (map (n: nameValuePair n (f n)) names);
| ^
1249|
… while calling anonymous lambda
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/pkgs/top-level/release-lib.nix:146:6:
145| testOnCross = crossSystem: metaPatterns: f: forMatchingSystems metaPatterns
146| (system: hydraJob' (f (pkgsForCross crossSystem system)));
| ^
147|
… from call site
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/pkgs/top-level/release-lib.nix:146:14:
145| testOnCross = crossSystem: metaPatterns: f: forMatchingSystems metaPatterns
146| (system: hydraJob' (f (pkgsForCross crossSystem system)));
| ^
147|
… while calling 'hydraJob'
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/lib/customisation.nix:388:14:
387| */
388| hydraJob = drv:
| ^
389| let
… while evaluating derivation 'bisq2-2.1.2'
whose name attribute is located at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/pkgs/stdenv/generic/make-derivation.nix:336:7
… while evaluating attribute 'installPhase' of derivation 'bisq2-2.1.2'
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/pkgs/by-name/bi/bisq/package.nix:137:3:
136|
137| installPhase = ''
| ^
138| runHook preInstall
… while evaluating derivation 'bisq-launcher'
whose name attribute is located at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/pkgs/stdenv/generic/make-derivation.nix:336:7
… while evaluating attribute 'text' of derivation 'bisq-launcher'
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/pkgs/build-support/trivial-builders/default.nix:101:16:
100| ({
101| inherit text executable checkPhase allowSubstitutes preferLocalBuild;
| ^
102| passAsFile = [ "text" ]
… from call site
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/pkgs/by-name/bi/bisq/package.nix:34:15:
33|
34| exec "${lib.getExe openjdk}" -Djpackage.app-version=@version@ -classpath @out@/lib/app/desktop-app-launcher.jar:@out@/lib/app/* ${args} bisq.desktop_app_launcher.DesktopAppLauncher "$@"
| ^
35| '';
… while calling 'getExe'
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/lib/meta.nix:433:12:
432| */
433| getExe = x: getExe' x (x.meta.mainProgram or (
| ^
434| # This could be turned into an error when 23.05 is at end of life
… from call site
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/lib/meta.nix:433:15:
432| */
433| getExe = x: getExe' x (x.meta.mainProgram or (
| ^
434| # This could be turned into an error when 23.05 is at end of life
… while calling 'getExe''
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/lib/meta.nix:473:16:
472| */
473| getExe' = x: y:
| ^
474| assert assertMsg (isDerivation x)
… from call site
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/lib/meta.nix:474:12:
473| getExe' = x: y:
474| assert assertMsg (isDerivation x)
| ^
475| "lib.meta.getExe': The first argument is of type ${typeOf x}, but it should be a derivation instead.";
… while calling 'assertMsg'
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/lib/asserts.nix:41:5:
40| pred:
41| msg:
| ^
42| pred || builtins.throw msg;
… from call site
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/lib/meta.nix:474:23:
473| getExe' = x: y:
474| assert assertMsg (isDerivation x)
| ^
475| "lib.meta.getExe': The first argument is of type ${typeOf x}, but it should be a derivation instead.";
… while calling 'isDerivation'
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/lib/attrsets.nix:1283:5:
1282| isDerivation =
1283| value: value.type or null == "derivation";
| ^
1284|
error: undefined variable 'jdk22'
at /ofborg/checkout/2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-2/pkgs/top-level/all-packages.nix:3295:15:
3294| bisq2 = callPackage ../by-name/bi/bisq/package.nix {
3295| openjdk = jdk22.override { enableJavaFX = true; };
| ^
3296| };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment