Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSwitch to Nix 2.0 #34636
Conversation
edolstra
added some commits
Feb 5, 2018
FRidh
added this to the 18.03 milestone
Feb 5, 2018
grahamc
added
the
9.needs: changelog
label
Feb 5, 2018
edolstra
added some commits
Feb 5, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Do these installer changes also fix #27307 ? |
| # Run the activation script. Set $LOCALE_ARCHIVE to supress some Perl locale warnings. | ||
| LOCALE_ARCHIVE=$system/sw/lib/locale/locale-archive chroot "$mountPoint" "$system/activate" >&2 || true | ||
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Mic92
Feb 9, 2018
Contributor
Bind mounting /etc/resolv.conf would be nice to have, if this tool is supposed to be a general-purpose tool.
Mic92
Feb 9, 2018
Contributor
Bind mounting /etc/resolv.conf would be nice to have, if this tool is supposed to be a general-purpose tool.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dezgeg
referenced this pull request
Feb 19, 2018
Open
use overlayfs by default for netboot and iso #35188
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dtzWill
Feb 22, 2018
Contributor
Looks like some copying oversight here:
- sha256 hopefully didn't change
- perl-bindings probably want to be using
nix1notnixStable, although maybe not.
dtzWill
commented on pkgs/tools/package-management/nix/default.nix in 32af695
Feb 22, 2018
|
Looks like some copying oversight here:
|
pkgs/tools/package-management/nix/default.nix
| @@ -155,7 +155,7 @@ in rec { | ||
| name = "nix-1.11.16"; | ||
| src = fetchurl { | ||
| url = "http://nixos.org/releases/nix/${name}/${name}.tar.xz"; | ||
| sha256 = "7024d327314bf92c1d3e6cccd944929828a44b24093954036bfb0115a92f5a14"; | ||
| sha256 = "0ca5782fc37d62238d13a620a7b4bff6a200bab1bd63003709249a776162357c"; | ||
| }; | ||
| }) // { perl-bindings = nixStable; }; |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dtzWill
Feb 22, 2018
Contributor
Not to nag, but just checking: is this intended to use perl bindings from nixStable (nix 2)?
dtzWill
Feb 22, 2018
Contributor
Not to nag, but just checking: is this intended to use perl bindings from nixStable (nix 2)?
edolstra
added some commits
Feb 22, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@dtzWill Thanks, fixed. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@dezgeg Yes, the entire build is done in the target filesystem. |
GrahamcOfBorg
added
the
8.has: package (new)
label
Feb 22, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
| url = "http://nixos.org/releases/nix/${name}/${name}.tar.xz"; | ||
| sha256 = "7024d327314bf92c1d3e6cccd944929828a44b24093954036bfb0115a92f5a14"; | ||
| }; | ||
| }) // { perl-bindings = perl-bindings { nix = nixStable; }; }; |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dtzWill
Feb 23, 2018
Contributor
It does, the perl bindings are for using Nix from perl. Previously nix utilities and such were themselves implemented in perl, which is no longer the case.
dtzWill
Feb 23, 2018
Contributor
It does, the perl bindings are for using Nix from perl. Previously nix utilities and such were themselves implemented in perl, which is no longer the case.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Also relevant for 17.09: #35468 |
edolstra
added some commits
Feb 27, 2018
| # Copy the NixOS/Nixpkgs sources to the target as the initial contents | ||
| # of the NixOS channel. | ||
| if [[ -z $noChannelCopy ]]; then | ||
| if [[ -z $channelPath ]]; then |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
copumpkin
Feb 27, 2018
Member
Ooh, does this make the channel optional? I was just thinking of adding that feature to make-disk-image.nix, since it's quite annoying in many situations.
copumpkin
Feb 27, 2018
Member
Ooh, does this make the channel optional? I was just thinking of adding that feature to make-disk-image.nix, since it's quite annoying in many situations.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
copumpkin
Feb 28, 2018
Member
Oh I guess I just haven't exposed that in the disk image machinery. I'll probably take a look after this is merged.
copumpkin
Feb 28, 2018
Member
Oh I guess I just haven't exposed that in the disk image machinery. I'll probably take a look after this is merged.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Looks like the hydra job (and of borg) have passed it?!?!?! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@vcunat Jobset is all green now so this should be good to merge. |
edolstra
changed the title from
[WIP] Switch to Nix 2.0
to
Switch to Nix 2.0
Mar 2, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Yeah, it should be up to the release managers. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vcunat
Mar 2, 2018
Member
If you feel it's ready, I believe you can go along. I haven't found time to really read the changes yet.
|
If you feel it's ready, I believe you can go along. I haven't found time to really read the changes yet. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
copumpkin
Mar 2, 2018
Member
I haven't had a chance to test the image building changes yet, but don't let me hold you up. If something goes wrong, I'll fix it or talk to you
|
I haven't had a chance to test the image building changes yet, but don't let me hold you up. If something goes wrong, I'll fix it or talk to you |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
7c6f434c
Mar 2, 2018
Member
Now that the builds are performed in the target store, should it be documented that to have /tmp for the build also in the target filesystem, the user should set TMPDIR? (Or do I misunderstand the situation?)
|
Now that the builds are performed in the target store, should it be documented that to have |
| @@ -116,14 +116,22 @@ in rec { | ||
| nix = nixStable; | ||
| nixStable = (common rec { | ||
| nix1 = (common rec { | ||
| name = "nix-1.11.16"; | ||
| src = fetchurl { | ||
| url = "http://nixos.org/releases/nix/${name}/${name}.tar.xz"; | ||
| sha256 = "0ca5782fc37d62238d13a620a7b4bff6a200bab1bd63003709249a776162357c"; | ||
| }; | ||
| }) // { perl-bindings = nixStable; }; |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vcunat
Mar 3, 2018
Member
@edolstra: is it intentional that perl-bindings for nix1 come from are nix2?
vcunat
Mar 3, 2018
•
Member
@edolstra: is it intentional that perl-bindings for nix1 come from are nix2?
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vcunat
Mar 3, 2018
Member
Well, I see it's wrong, as nixStable itself has no perl stuff inside, but I still don't know surely if it should be nixStable.perl-bindings or perl-bindings { nix = nix1; }.
vcunat
Mar 3, 2018
Member
Well, I see it's wrong, as nixStable itself has no perl stuff inside, but I still don't know surely if it should be nixStable.perl-bindings or perl-bindings { nix = nix1; }.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Ericson2314
Mar 3, 2018
Member
Yeah that looks like a mistake. That isn't even Nix 2's perl bindings.
Ericson2314
Mar 3, 2018
Member
Yeah that looks like a mistake. That isn't even Nix 2's perl bindings.
vcunat
added some commits
Mar 3, 2018
vcunat
added
8.has: changelog
and removed
9.needs: changelog
labels
Mar 3, 2018
vcunat
approved these changes
Mar 3, 2018
The binding issue seems a nitpick, really. It's only referenced by hydra and that seems unlikely to be used with nix1 anymore...
I can't see any other problem.
vcunat
closed this
Mar 3, 2018
vcunat
deleted the
nix-2.0
branch
Mar 3, 2018
Mic92
merged commit 729d72f
into
master
Mar 3, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vcunat
Mar 3, 2018
Member
^^ hehe, GitHub confusing people again. I have reported such case to them once or twice during the past year or two, but apparently it still happens sometimes.
|
^^ hehe, GitHub confusing people again. I have reported such case to them once or twice during the past year or two, but apparently it still happens sometimes. |
romildo
referenced this pull request
Mar 3, 2018
Merged
a single version attribute for expressions previously using "majorVersion" #36168
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Possibly a problem: #36268 |
vcunat
referenced this pull request
Mar 4, 2018
Closed
Installer builds derivations on host store #27307
YorikSar
referenced this pull request
Mar 7, 2018
Closed
Can't build 18.03 GCE image on 17.09 system #36417
lheckemann
referenced this pull request
Mar 9, 2018
Open
nixos-install doesn't appear to idempotently set passwords #36493
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dezgeg
Apr 14, 2018
Contributor
I think these changes caused #38477. Previously, a mount --rbind /sys was done, but no longer, so I bet efivarfs is not getting mounted inside the nixos-enter chroot anymore.
|
I think these changes caused #38477. Previously, a |
edolstra commentedFeb 5, 2018
Hopefully we can switch to Nix 2.0 for NixOS 18.03. Nix 2.0 should be released in the next few weeks. This PR makes 2.0 the default (by temporarily pointing
nixtonixUnstable) and updatesnixos-installto work with it. It also adds a commandnixos-enterthat factors out the functionality ofnixos-install --chroot.