Skip to content

Commit 211599c

Browse files
SyndamiaMartinNikov
andcommitted
fix(flake.nix): Update packages, following flake.lock update
- Remove cryptography36 from all shell - Update leap's clang11 to clang14 - Rename rust-stable wasm32-wasi target to wasm32-wasip1, following upstream rename - Add rust-bin-2024-08-01 for old rust-bin toolchains, which are needed for zkWasm to compile Co-authored-by: Martin Nikov <[email protected]>
1 parent 6b9a008 commit 211599c

File tree

7 files changed

+39
-8
lines changed

7 files changed

+39
-8
lines changed

flake.lock

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
url = "github:oxalica/rust-overlay";
3434
inputs.nixpkgs.follows = "nixpkgs";
3535
};
36+
37+
rust-overlay-2024-08-01 = {
38+
url = "github:oxalica/rust-overlay?ref=snapshot/2024-08-01";
39+
inputs.nixpkgs.follows = "nixpkgs";
40+
};
3641
};
3742

3843
outputs =

packages/all-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
cardano-node
2323
cardano-cli
2424
pkgs-with-rust-overlay
25+
rust-bin-2024-08-01
2526
;
2627
python3Packages = pkgs.python3Packages;
2728

@@ -178,6 +179,7 @@
178179
inherit craneLib-nightly;
179180
inherit fetchGitHubFile;
180181
inherit installSourceAndCargo;
182+
inherit rust-bin-2024-08-01;
181183
};
182184

183185
args-zkVM-rust = {

packages/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
rust-stable = pkgs-with-rust-overlay.rust-bin.stable.latest.default.override {
2727
extensions = [ "rust-src" ];
2828
targets = [
29-
"wasm32-wasi"
29+
"wasm32-wasip1"
3030
"wasm32-unknown-unknown"
3131
];
3232
};
@@ -92,6 +92,8 @@
9292
pkgs-with-rust-overlay
9393
;
9494

95+
rust-bin-2024-08-01 = inputs.rust-overlay-2024-08-01.lib.mkRustBin { } pkgs;
96+
9597
rustPlatformStable = pkgs.makeRustPlatform {
9698
rustc = rust-stable;
9799
cargo = rust-stable;

packages/leap/default.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
clang11Stdenv,
2+
clang14Stdenv,
33
nodejs,
44
fetchFromGitHub,
55
pkgs,
66
lib,
77
xz,
88
}:
9-
clang11Stdenv.mkDerivation rec {
9+
clang14Stdenv.mkDerivation rec {
1010
pname = "leap";
1111
version = "4.0.0";
1212

@@ -25,13 +25,13 @@ clang11Stdenv.mkDerivation rec {
2525
nativeBuildInputs = with pkgs; [
2626
pkg-config
2727
cmake
28-
clang_11
28+
clang_14
2929
git
3030
python3
3131
];
3232

3333
buildInputs = with pkgs; [
34-
llvm_11
34+
llvm_14
3535
curl.dev
3636
gmp.dev
3737
openssl.dev

packages/zkwasm/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
rust-bin,
2+
rust-bin-2024-08-01,
33
craneLib-nightly,
44
fetchFromGitHub,
55
fetchGitHubFile,
@@ -29,7 +29,7 @@ let
2929
};
3030

3131
craneLib = craneLib-nightly.overrideToolchain (
32-
rust-bin.fromRustupToolchainFile (fetchGitHubFile {
32+
rust-bin-2024-08-01.fromRustupToolchainFile (fetchGitHubFile {
3333
inherit (commonArgs.src) owner repo rev;
3434
file = "rust-toolchain";
3535
hash = "sha256-gHLj2AMKnStjvZcowfe9ZdTnwOBUPCRADmv81H7dAak=";

shells/all.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ mkShell {
7575

7676
# Disabled until elrond-go can build with Go >= 1.19
7777
# Elrond
78-
metacraft-labs.cryptography36
78+
# metacraft-labs.cryptography36
7979
# metacraft-labs.erdpy
8080
# metacraft-labs.elrond-go
8181
# metacraft-labs.elrond-proxy-go

0 commit comments

Comments
 (0)