Open ahuston-0 opened 2 months ago
Unfortunately all the fetchers we currently using, require IFD https://github.com/nix-community/NUR/blob/0ef9c5ede0ed044be738087bedbcc161f92b1d48/lib/repoSource.nix#L34C8-L34C16 However it might be possible to use builtin fetcher and load the json here directly:
https://github.com/nix-community/NUR/blob/master/repos.json.lock
i.e. using builtins.fetchgit
on a revision field
Okay yeah I had a feeling y'all would say something like that given the setup. Let me see if I can put something together and I'll get back if it's borked. If you want to close this in the meantime that's okay with me. Thanks for pointing me towards the fetcher logic!
Otherwise I believe hydra has it's own nix configuration if I remember correctly? Or was this just for remote builder configuration? The component that does the eval is called hydra-eval-jobs.
I'm trying to migrate a shared repo over to using the NUR, instead of using the
rycee
repo directly forfirefox-addons
, but I am getting IFD errors withnix flake show
&nix flake check
when I include my hydraJobs. Please let me know if there's a better place to raise this issue, as this seems like an intersection of a few different things at once.Details to reproduce: The hydra jobs themselves are working fine, and when i remove them
nix flake show
works as expected. AddingnixConfig.allow-import-from-derivation = true
to the flake config fixesnix flake check
, but notnix flake show
. Adding--option allow-import-from-derivation true
fixes both issues.Hydra build URL: https://hydra.alicehuston.xyz/eval/224954
IFD error
flake.nix
hydra config:
base config
and the home-manager config with NUR