[Nix-dev] bearing on hydra errors

aszlig aszlig at redmoonstudios.org
Mon Jan 18 17:31:40 CET 2016


Hi Stewart,

On Mon, Jan 18, 2016 at 02:17:06PM +0800, stewart mackenzie wrote:
> I've got hydra compiling this:
> https://github.com/fractalide/fractalide/blob/master/default.nix

The main problem here is that Hydra recursively collects all derivations
based on the given expression (attrset or function returning an
attrset).

> nix-shell + nix-build has no errors.

This also depends on how you were using nix-shell and/or nix-build,
because they do not recurse by default.

> in job ‘support.genName.overrideDerivation’:
> overrideDerivation not yet supported for functors

'genName' returns a string and callPackage tries to add an
overrideDerivation attribute to it.

> in job ‘support.buildFractalideContract.override’:
> unsupported value: <LAMBDA>

This is even more complicated as the callPackage to
buildFractalideContract returns a function.

... and so on, won't go through all of these errors, but they're of a
similar nature.

So summing up, you're best off creating a separate release.nix for Hydra
where you recurse through the attributes in default.nix and _only_
return derivations.

You can use <nixpkgs/pkgs/top-level/release-lib.nix> which provides a
few helper functions for exactly that:

https://github.com/NixOS/nixpkgs/blob/b4052f0a1e7dd60a900de0c78f6673621b291beb/pkgs/top-level/release-lib.nix

a!
-- 
aszlig
Universal dilettante
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: Digital signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160118/4bb8fa6e/attachment.bin 


More information about the nix-dev mailing list