nix-community / authentik-nix

Nix flake with package, NixOS module and basic VM test for authentik. Trying to provide an alternative deployment mode to the officially supported docker-compose approach. Not affiliated with or officially supported by the authentik project [maintainer=@willibutz]
MIT License
74 stars 15 forks source link

IFD error while deploying from x86_64 to arm64 with ` --build-on-target` #5

Closed shokinn closed 8 months ago

shokinn commented 10 months ago

Hi, I got some IFD issue while deploying with colmena from my local machine (x86_64) to an arm64 based server.

A friend of mine helped me to get this sorted, and since I'm actually still don't understand what she did, it works now. But because of that I'm not comfortable to file a PR. The changes she suggested are the following: https://github.com/nix-community/authentik-nix/compare/main...shokinn:authentik-nix:main

I kindly like to ask to add those to your repo as well.

WilliButz commented 10 months ago

Hey, thanks for pointing that out. I'm currently not working with the limitation of allow-import-from-derivation = false, so I did not notice that I introduced it, but I think it should be avoided if possible. Not sure how that additional cargo-hash avoids IFD but the patched pyproject.toml is obvious.

fpletz commented 8 months ago

Fixed in https://github.com/nix-community/poetry2nix/pull/1525.