[Nix-dev] Hydra to build RPMs

Luca Bruno lethalman88 at gmail.com
Thu Dec 4 09:48:20 CET 2014


On 04/12/2014 04:58, stewart mackenzie wrote:
> What happens:
> Hydra's UI displays this error message:
> "
> in job ‘fedora13_x86_64’:
> value is a function while a set was expected, at
> [1m/nix/store/hqkfnyz4h7lgsbp5vs7a33za2m27xaif-git-export/release.nix
> [0m:56:27
> "
>
> Release.nix contents:
>
> let
>   pkgs = import <nixpkgs> {}; #obtained from hydra's UI jobset
>
>   makeRPM =
>     diskImageFun:
>     { c-ejabberd, nixpkgs }:
>
>     with import nixpkgs.path {};
>
>     releaseTools.rpmBuild rec {
>       name = "c-ejabberd-rpm-${diskImage.name}";
>       src = c-ejabberd;
>       diskImage = diskImageFun vmTools.diskImages;
> #      meta.schedulingPriority = "4";  # low priority
>     };
>
> [...]
>      fedora13_x86_64 = makeRPM "x86_64-linux" (diskImages:
> diskImages.fedora13x86_64);
This call doesn't seem to match your makeRPM function definition. The
second argument of makeRPM wants a set, but you are passing a function.
Hence the error.


More information about the nix-dev mailing list