[Nix-dev] nixos installer test failure..

jack-nix at mudshark.org jack-nix at mudshark.org
Wed Mar 6 16:48:21 CET 2013


I'm attempting to run the installer tests: `nix-build tests/ -A
installer.swraid` 

It fails when attempting to find `nixpkgs` and `nixos` when running
`nixos-install`.

    machine#   /nix/store/qh3l8f8369kvbhnkbwwnpaxayvnvi55v-acl-2.2.51
    machine#   /nix/store/vpp6h8l3mzjdn5paziz31vk52pg73635-coreutils-8.15
    machine# error: unable to find `nixpkgs'
    machine# readlink: missing operand
    machine# Try `readlink --help' for more information.
    machine: exit status 1
    machine: output: 
    error: command `nixos-install >&2' did not succeed (exit code 1)

A brief look inside the generated squashfs shows that the nixpkgs and nixos
expression trees are there, but I can't figure out how the `nixos-install`
script is supposed to find the expressions:

   165  # Get the absolute path to the NixOS/Nixpkgs sources.
   166  nixpkgs_src=$(readlink -f $(nix-instantiate --find-file nixpkgs))
   167  nixos_src=$(readlink -f $(nix-instantiate --find-file nixos))

How this is supposed to work? 

--Jack 

--
Jack (John) Cummings                           http://mudshark.org/
PGP fingerprint: A927 992E 197B 0A86 27BC  964D A1DA CBAC CC48 B110
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20130306/791b6908/attachment.bin 


More information about the nix-dev mailing list