Skip to content

Instantly share code, notes, and snippets.

@GrahamcOfBorg
Created December 2, 2022 08:04
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/f2dab55d6b944d4f660a770674c366e3 to your computer and use it in GitHub Desktop.
Save GrahamcOfBorg/f2dab55d6b944d4f660a770674c366e3 to your computer and use it in GitHub Desktop.
nix-env failed:
error: undefined variable 'pythonOlder'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/pkgs/development/python-modules/django-postgresql-netfields/default.nix:17:14:
16|
17| disabled = pythonOlder "3.7";
| ^
18|
… while evaluating 'functionArgs'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/lib/trivial.nix:440:18:
439| */
440| functionArgs = f:
| ^
441| if f ? __functor
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/lib/customisation.nix:123:15:
122| f = if lib.isFunction fn then fn else import fn;
123| fargs = lib.functionArgs f;
| ^
124|
… while evaluating 'filterAttrs'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/lib/attrsets.nix:243:23:
242| */
243| filterAttrs = pred: set:
| ^
244| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/lib/customisation.nix:133:10:
132| # Filter out arguments that have a default value
133| (lib.filterAttrs (name: value: ! value)
| ^
134| # Filter out arguments that would be passed
… while evaluating 'callPackageWith'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/lib/customisation.nix:120:35:
119| */
120| callPackageWith = autoArgs: fn: args:
| ^
121| let
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/pkgs/top-level/python-packages.nix:2563:33:
2562|
2563| django-postgresql-netfields = callPackage ../development/python-modules/django-postgresql-netfields { };
| ^
2564|
… while evaluating 'isDerivation'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/lib/attrsets.nix:446:18:
445| */
446| isDerivation = x: x.type or null == "derivation";
| ^
447|
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/pkgs/development/interpreters/python/default.nix:40:29:
39| providesSetupHook = lib.attrByPath [ "provides" "setupHook"] false;
40| valid = value: !((lib.isDerivation value) && !((pythonPackages.hasPythonModule value) || (providesSetupHook value))) || (lib.elem value exceptions);
| ^
41| func = name: value: if (valid value) then value else throw "${name} should use `buildPythonPackage` or `toPythonModule` if it is to be part of the Python packages set.";
… while evaluating 'valid'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/pkgs/development/interpreters/python/default.nix:40:19:
39| providesSetupHook = lib.attrByPath [ "provides" "setupHook"] false;
40| valid = value: !((lib.isDerivation value) && !((pythonPackages.hasPythonModule value) || (providesSetupHook value))) || (lib.elem value exceptions);
| ^
41| func = name: value: if (valid value) then value else throw "${name} should use `buildPythonPackage` or `toPythonModule` if it is to be part of the Python packages set.";
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/pkgs/development/interpreters/python/default.nix:41:35:
40| valid = value: !((lib.isDerivation value) && !((pythonPackages.hasPythonModule value) || (providesSetupHook value))) || (lib.elem value exceptions);
41| func = name: value: if (valid value) then value else throw "${name} should use `buildPythonPackage` or `toPythonModule` if it is to be part of the Python packages set.";
| ^
42| in lib.mapAttrs func items;
… while evaluating 'func'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/pkgs/development/interpreters/python/default.nix:41:24:
40| valid = value: !((lib.isDerivation value) && !((pythonPackages.hasPythonModule value) || (providesSetupHook value))) || (lib.elem value exceptions);
41| func = name: value: if (valid value) then value else throw "${name} should use `buildPythonPackage` or `toPythonModule` if it is to be part of the Python packages set.";
| ^
42| in lib.mapAttrs func items;
… from call site
… while evaluating 'isDerivation'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/lib/attrsets.nix:446:18:
445| */
446| isDerivation = x: x.type or null == "derivation";
| ^
447|
… from call site
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/pkgs/top-level/release-lib.nix:149:10:
148| packagePlatforms = mapAttrs (name: value:
149| if isDerivation value then
| ^
150| value.meta.hydraPlatforms
… while evaluating anonymous lambda
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/pkgs/top-level/release-lib.nix:148:38:
147| set of meta.platforms values. */
148| packagePlatforms = mapAttrs (name: value:
| ^
149| if isDerivation value then
… from call site
… while evaluating 'g'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/lib/attrsets.nix:417:19:
416| g =
417| name: value:
| ^
418| if isAttrs value && cond value
… from call site
… while evaluating anonymous lambda
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/.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