nix/sources.json: upgrade nixpkgs to the latest master#1189
nix/sources.json: upgrade nixpkgs to the latest master#1189mergify[bot] merged 1 commit intomasterfrom
Conversation
|
Would we track upstream master again once they merge the cherry-pickes patch? |
Yes we can. The patch is currently in I won't merge this yet because I'm still testing this out on https://zh-hydra-int.dfinity.systems which has the upstream cache.nixos.org disabled. |
1d95e0c to
d334dee
Compare
|
EDIT: this has been worked around. |
d334dee to
7cf546c
Compare
|
@nomeata @ggreif I probably need a bit of help fixing the last remaining 2 bugs in the test suite:
--- representative.linked.wat (expected)
+++ representative.linked.wat (actual)
@@ -28,4 +28,4 @@
(table (;0;) 0 0 funcref)
(memory (;0;) 2)
(global (;0;) i32 (i32.const 65536))
- (start 8))
+ (start $link_start))
--- caller.drun-run (expected)
+++ caller.drun-run (actual)
@@ -4,7 +4,7 @@
ingress Completed: Canister: Payload: 0x4449444c0000
ingress Completed: Canister: Payload: 0x4449444c0000
Ok: Payload: 0x4449444c0000
-ingress Completed: Canister: Payload: 0x4449444c016d7b010021000000000000000000000000000000000000000000000000000000000000000000
-Ok: Payload: 0x4449444c0001798d3a7c7a
-Ok: Payload: 0x4449444c00017d21
-Ok: Payload: 0x4449444c016e7b01000100
+ingress Completed: Canister: Payload: 0x4449444c016d7b0100020101
+Ok: Payload: 0x4449444c0001792813c52f
+Ok: Payload: 0x4449444c00017d02
+Ok: Payload: 0x4449444c016e7b01000101I guess these are due to the |
@basvandijk This is a benign change due to a new I'll leave the second for @nomeata. |
|
@basvandijk branch gabor/dwarf also has a Nixpkgs bump (though I am referencing my fork). I am happy with this change. Just asking, will |
|
Indeed, changes look benign. Just run |
7cf546c to
a2a0f2f
Compare
This upgrades `nixpkgs` to DFINITY's fork of nixpkgs which tracks the
`master` branch. There're only two patches on top of `master`:
```
commit a4e23f32f8d7006e217125a9123b53597b9c0c24 (HEAD -> dfinity-motoko, dfinity-lab/dfinity-motoko)
Author: Bas van Dijk <v.dijk.bas@gmail.com>
Date: Wed Feb 12 16:08:05 2020 +0100
expect: remove autoreconfHook since that causes a wrong path to stty
See: NixOS/nixpkgs#79863
commit f359aea057db81c51e55d7250283a0b2201bd6b6
Author: Bas van Dijk <v.dijk.bas@gmail.com>
Date: Thu Feb 6 19:14:09 2020 +0100
libuv: 1.34.1 -> 1.34.2
(cherry picked from commit 21ad5c123b8e76ab241b89acbc8db24925244d63)
```
We need this patch in order to build `motoko` without using the
upstream `cache.nixos.org`. It would be good not to use an external
cache to decrease the chance an attacker can infect the cache with a
trojan and to ensure DFINITY can always build their own code without
depending on an external cache.
a2a0f2f to
56b8565
Compare
ggreif
left a comment
There was a problem hiding this comment.
Haskell-related stuff looks good.
|
Hmm, it seems it now wants to build here, which is not found in any cache. I assume this might be because we use |
|
Maybe we should simply commit the output of |
see #1189 (comment) My hope is that by adding `cabal2nix` to the build product, it will reliably be available on our nix cache.
in #1189 we switched to a fork of nixpkgs to get two patches not in nixpkgs `master` at that time. Looks like they have made it to `nixpkgs/master`, so we can track that again (and make the Motoko repo more self-contained).
in #1189 we switched to a fork of nixpkgs to get two patches not in nixpkgs `master` at that time. Looks like they have made it to `nixpkgs/master`, so we can track that again (and make the Motoko repo more self-contained).
This upgrades
nixpkgsto DFINITY's fork of nixpkgs which tracks themasterbranch. There're only two patches on top ofmaster:We need these patches in order to build
motokowithout using theupstream
cache.nixos.org. It would be good not to use an externalcache to decrease the chance an attacker can infect the cache with a
trojan and to ensure DFINITY can always build their own code without
depending on an external cache.