I’m trying to add the python module for ninja into nixpkgs, but I get the following error:
error: infinite recursion encountered
at //builtin/derivation.nix:19:19:
… while evaluating the attribute 'out.outPath'
at /home/jonathan/NixBuilds/nixpkgs/lib/customisation.nix:215:13:
214| drvPath = assert condition; drv.${outputName}.drvPath;
215| outPath = assert condition; drv.${outputName}.outPath;
| ^
216| } //
… while evaluating the attribute 'nativeBuildInputs' of the derivation 'python3.10-scikit-build-0.16.7'
at /home/jonathan/NixBuilds/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:302:7:
301| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
302| name =
| ^
303| let
… while evaluating the attribute 'out.outPath'
at /home/jonathan/NixBuilds/nixpkgs/lib/customisation.nix:215:13:
214| drvPath = assert condition; drv.${outputName}.drvPath;
215| outPath = assert condition; drv.${outputName}.outPath;
| ^
216| } //
… while evaluating the attribute 'nativeBuildInputs' of the derivation 'python3.10-ninja-1.11.1'
at /home/jonathan/NixBuilds/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:302:7:
301| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
302| name =
| ^
303| let
… while evaluating the attribute 'drvPath'
at /home/jonathan/NixBuilds/nixpkgs/lib/customisation.nix:228:7:
227| in commonAttrs // {
228| drvPath = assert condition; drv.drvPath;
| ^
229| outPath = assert condition; drv.outPath;
… while evaluating the attribute 'drvPath'
at /home/jonathan/NixBuilds/nixpkgs/lib/customisation.nix:228:7:
227| in commonAttrs // {
228| drvPath = assert condition; drv.drvPath;
| ^
229| outPath = assert condition; drv.outPath;
My commit for my current attempt is here: python3Packages.ninja: init at 1.11.1 · JonBoyleCoding/nixpkgs@a4ca230 · GitHub
I believe it’s got something to do with the name “ninja” for the package in the python-packages.nix. Please excuse the extra argument - it was an attempt to fix that didn’t help and I plan to remove them.
Thanks for the help - I’ve spent way too many hours trying to solve this.