Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
hellwolf committed May 20, 2024
1 parent 894c323 commit 156e7fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
16 changes: 11 additions & 5 deletions mk-solc-pkgs.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
{
lib,
callPackage,
stdenv,
autoPatchelfHook,
fetchurl,
solc-macos-amd64-list,
...
}:

lib.foldr (
binary: all_binaries:
builtins.foldl' (
all_binaries: binary:
let
pname = "solc_" + (builtins.replaceStrings [ "." ] [ "_" ] binary.version);
maybeSolc = callPackage (import ./mk-solc-static-pkg.nix) {
maybeSolc = (import ./mk-solc-static-pkg.nix) {
inherit lib;
inherit stdenv;
inherit autoPatchelfHook;
inherit fetchurl;
inherit solc-macos-amd64-list;
solc_ver = binary.version;
solc_sha256 = binary.sha256;
inherit solc-macos-amd64-list;
};
in
if maybeSolc != null then all_binaries // { "${pname}" = maybeSolc; } else all_binaries
Expand Down
6 changes: 3 additions & 3 deletions test/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 156e7fe

Please sign in to comment.