On 10/18/13, Marc Weber <[email protected]> wrote: > Excerpts from Andrey Rogozhin's message of Fri Oct 18 18:51:09 +0200 2013: >> Thanks, Eelco! I've just tried to fetch a fresh installation CD and >> did a fresh install with the updated expression as you advised. > That's the first thing to learn about nixos: Never do a fresh install. > Its not necessary. Update the channel or your nixpkgs repository. > The update will be incremental and deterministic at the same time! > The Nix manual should make this clear. > > There is the /run/current-system/sw/bin indirection taking care of > "switching the system" and similar /etc/* symlink stuff. > > Also compare with https://nixos.org/wiki/Nix_impurities > > To be be fool proof you need to: > > - checkout nixpkgs > > - export > NIX_PATH=nixos=path-to-nixpkgs/nixos:nixpkgs=path-to-nixpkgs:nixos-config=/etc/nixos/configuration.nix > > Then run any of: > > nixos-rebuild test/boot/switch/vm > (see --help) >
Marc, thanks for pointing that out, but I think something else is at play here as I tried the commands you suggested and still get failed build: [root@nixos-pro:~]# mkdir /root/hack [root@nixos-pro:~]# cd /root/hack [root@nixos-pro:~/hack]# git clone git://github.com/NixOS/nixpkgs.gitCloning into 'nixpkgs'... remote: Counting objects: 302760, done. remote: Compressing objects: 100% (88334/88334), done. remote: Total 302760 (delta 203730), reused 287753 (delta 189626) Receiving objects: 100% (302760/302760), 98.19 MiB | 3.42 MiB/s, done. Resolving deltas: 100% (203730/203730), done. Checking connectivity... done [root@nixos-pro:~/hack]# git clone git://github.com/NixOS/nixos.git Cloning into 'nixos'... remote: Counting objects: 33256, done. remote: Compressing objects: 100% (18731/18731), done. remote: Total 33256 (delta 17724), reused 29660 (delta 14200) Receiving objects: 100% (33256/33256), 10.20 MiB | 1.86 MiB/s, done. Resolving deltas: 100% (17724/17724), done. Checking connectivity... done [root@nixos-pro:~/hack]# export NIX_PATH="nixos=/root/hack/nixos:nixpkgs=/root/hack/nixpkgs:nixos-config=/etc/nixos/configuration.nix" [root@nixos-pro:~/hack]# nixos-rebuild test --show-trace building Nix... building the system configuration... error: while evaluating the attribute `drvPath' at `/nix/store/837scsdsdrlp49xv79ivrc5fbnfm6rrm-nix-1.6/share/nix/corepkgs/derivation.nix:19:9': while evaluating the builtin function `derivationStrict': while instantiating the derivation named `nixos-13.09pre-git' at `/root/hack/nixos/modules/system/activation/top-level.nix:87:5': while evaluating the derivation attribute `buildCommand' at `/root/hack/nixos/modules/system/activation/top-level.nix:89:5': while evaluating the attribute `outPath' at `/nix/store/837scsdsdrlp49xv79ivrc5fbnfm6rrm-nix-1.6/share/nix/corepkgs/derivation.nix:18:9': while evaluating the builtin function `getAttr': while evaluating the builtin function `derivationStrict': while instantiating the derivation named `etc' at `/root/hack/nixos/modules/system/etc/etc.nix:12:5': while evaluating the derivation attribute `sources' at `/root/hack/nixos/modules/system/etc/etc.nix:19:5': while evaluating the attribute `outPath' at `/nix/store/837scsdsdrlp49xv79ivrc5fbnfm6rrm-nix-1.6/share/nix/corepkgs/derivation.nix:18:9': while evaluating the builtin function `getAttr': while evaluating the builtin function `derivationStrict': while instantiating the derivation named `dbus-conf' at `/root/hack/nixos/modules/services/system/dbus.nix:14:5': while evaluating the derivation attribute `buildCommand' at `/root/hack/nixos/modules/services/system/dbus.nix:16:5': while evaluating `concatMapStrings' at `/root/hack/nixpkgs/lib/strings.nix:18:25': while evaluating `fold' at `/root/hack/nixpkgs/lib/lists.nix:24:19': while evaluating `fold'' at `/root/hack/nixpkgs/lib/lists.nix:27:15': while evaluating an anonymous function at `/root/hack/nixpkgs/lib/strings.nix:14:32': while evaluating `fold'' at `/root/hack/nixpkgs/lib/lists.nix:27:15': while evaluating an anonymous function at `/root/hack/nixpkgs/lib/strings.nix:14:32': while evaluating the builtin function `elemAt': while evaluating an anonymous function at `/root/hack/nixos/modules/services/system/dbus.nix:45:6': while evaluating the attribute `outPath' at `/nix/store/837scsdsdrlp49xv79ivrc5fbnfm6rrm-nix-1.6/share/nix/corepkgs/derivation.nix:18:9': while evaluating the builtin function `getAttr': while evaluating the builtin function `derivationStrict': while instantiating the derivation named `system-path' at `/root/hack/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14': while evaluating the derivation attribute `paths' at `/root/hack/nixpkgs/pkgs/build-support/buildenv/default.nix:29:12': while evaluating the attribute `outPath' at `/nix/store/837scsdsdrlp49xv79ivrc5fbnfm6rrm-nix-1.6/share/nix/corepkgs/derivation.nix:18:9': while evaluating the builtin function `getAttr': while evaluating the builtin function `derivationStrict': while instantiating the derivation named `nixos-manpages' at `/root/hack/nixos/doc/manual/default.nix:72:5': while evaluating the derivation attribute `buildCommand' at `/root/hack/nixos/doc/manual/default.nix:78:5': while evaluating the attribute `outPath' at `/nix/store/837scsdsdrlp49xv79ivrc5fbnfm6rrm-nix-1.6/share/nix/corepkgs/derivation.nix:18:9': while evaluating the builtin function `getAttr': while evaluating the builtin function `derivationStrict': while instantiating the derivation named `options-db.xml' at `/root/hack/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14': while evaluating the derivation attribute `buildCommand' at `/root/hack/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14': while evaluating the builtin function `toFile': while evaluating the builtin function `unsafeDiscardStringContext': while evaluating the builtin function `toXML': attempt to call something which is not a function but a list [root@nixos-pro:~/hack]# -- Sincerely, Andrey Rogozhin, _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
