Skip to content

Commit 3a87044

Browse files
committed
chore(all-packages): Flatten arguments for fetchGitHubFile function
1 parent 58da6b5 commit 3a87044

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/all-packages.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@
109109
polkadot-fast = polkadot-generic {enableFastRuntime = true;};
110110

111111
fetchGitHubFile = {
112-
commonArgs,
112+
owner,
113+
repo,
114+
rev,
113115
file,
114116
hash
115-
}: let
116-
inherit (commonArgs.src) owner repo rev;
117-
in
117+
}:
118118
pkgs.fetchurl {
119119
url = "https://raw.githubusercontent.com/${owner}/${repo}/${rev}/${file}";
120120
inherit hash;

packages/jolt/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let
3232

3333
rust-toolchain = rust-bin.fromRustupToolchainFile
3434
(fetchGitHubFile {
35-
inherit commonArgs;
35+
inherit (commonArgs.src) owner repo rev;
3636
file = "rust-toolchain.toml";
3737
hash = "sha256-Fyj+Bp/dt3epuTN9kXN+r7Z3gzXYCDrcVEPWTr1sQqk=";
3838
});

packages/zkwasm/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ let
2929

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

0 commit comments

Comments
 (0)