Skip to content

Commit 58da6b5

Browse files
committed
chore(all-packages): Fix formatting of zkVM helper attributes
1 parent b997734 commit 58da6b5

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

packages/all-packages.nix

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,31 @@
108108
polkadot = polkadot-generic {};
109109
polkadot-fast = polkadot-generic {enableFastRuntime = true;};
110110

111-
fetchGitHubFile = { commonArgs, file, hash }:
112-
let
111+
fetchGitHubFile = {
112+
commonArgs,
113+
file,
114+
hash
115+
}: let
113116
inherit (commonArgs.src) owner repo rev;
114-
in pkgs.fetchurl {
115-
url = "https://raw.githubusercontent.com/${owner}/${repo}/${rev}/${file}";
117+
in
118+
pkgs.fetchurl {
119+
url = "https://raw.githubusercontent.com/${owner}/${repo}/${rev}/${file}";
120+
inherit hash;
121+
};
122+
123+
fetchGitHubReleaseAsset = {
124+
owner,
125+
repo,
126+
tag,
127+
asset,
128+
hash
129+
}:
130+
pkgs.fetchzip {
131+
url = "https://github.com/${owner}/${repo}/releases/download/${tag}/${asset}";
116132
inherit hash;
117-
};
133+
stripRoot = false;
134+
};
135+
118136
installSourceAndCargo = rust-toolchain: rec {
119137
installPhaseCommand = ''
120138
mkdir -p "$out"/bin
@@ -130,19 +148,14 @@
130148
done
131149
'';
132150
};
151+
133152
args-zkVM = {
134153
inherit (pkgs-with-rust-overlay) rust-bin;
135154
inherit craneLib-nightly;
136155
inherit fetchGitHubFile;
137156
inherit installSourceAndCargo;
138157
};
139158

140-
fetchGitHubReleaseAsset = { owner, repo, tag, asset, hash }:
141-
pkgs.fetchzip {
142-
url = "https://github.com/${owner}/${repo}/releases/download/${tag}/${asset}";
143-
inherit hash;
144-
stripRoot = false;
145-
};
146159
args-zkVM-rust = {
147160
inherit fetchGitHubReleaseAsset;
148161
};

0 commit comments

Comments
 (0)