Cannot reproduce nixpkgs CI build failure locally

I’ve submitted this PR to the nixpkgs github repo, and it seems that my package fails to build in CI.

It seems like fetchFromGitHub fails (missing package.json file) however everything builds fine for me on my local machine :thinking:

The way I’m building on my local machine is to stand in the root of the nixpkgs repo, and issue:

nix-build -A gren

I’m running nix 2.28 on an Apple Silicon Macbook, if that helps.

Anyone know what I can do to re-produce the error?

IFD is disallowed in nixpkgs and CI enforces that.

Try --option allow-import-from-derivation false when building to catch IFDs.

1 Like

With this I was able to debug and fix the issue. Thank you! :partying_face:

1 Like