[Nix-dev] hydra job to include a previous hydra evaluation

stewart mackenzie setori88 at gmail.com
Sat Jul 18 11:15:05 CEST 2015


Hi,

I've got a release.nix:

with import <nixpkgs> {};
with import <exicon-channel> {};
{
  appboard = stdenv.mkDerivation rec {
    version = "0.0.1";
    name = "appboard-${version}";
    src = ./.;
    buildInputs =  [ exicon-channel.boot ];
  };
}

Now this is my hydra jobset configuration:
------------
identifier = appboard
nix expression release.nix in appboard

input name       type             value
appboard          git checkout  git at bitbucket.org:exicon/appboard.git
exicon-channel  git checkout git://github.com/exicon/nix-deps.git
nixpkgs            git checkout https://github.com/NixOS/nixpkgs.git
release-14.12
------------

As boot-clj.com isn't available on release-14.12 yet so I've created a
custom hydra job to build boot for us. You can take a look at it here:
https://github.com/exicon/nix-deps/blob/master/default.nix#L34

I then need to include the "exicon-channel" into the ahove release.nix
as can be seen by the hydra jobset inputs. I would expect hydra to be
able to see I want the exicon-channel.boot package.

Instead hydra throws this error:

"

in job ‘appboard’:
attempt to call something which is not a function but a set, at
/nix/store/0lm7j83nz88y9hlz627wvrp6rsp1s1bg-git-export/release.nix:2:6"

I do not know how to add exicon-channel to my localhost. (yes I used
nix-channel --add <channel> exicon-channel && nixos-rebuild switch
but it wasn't added to the $NIX_PATH

$ echo $NIX_PATH
/nix/var/nix/profiles/per-user/root/channels/nixos:nixpkgs=/etc/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels

nor was it added to /nix/var/nix/profiles/per-user/root/channels/
)
Therefore I couldn't just do 'nix-build release.nix' in the localhost
appboard src folder to test it out.

thanks

/sjm


More information about the nix-dev mailing list