Skip to content

Commit

Permalink
force "solc-static-linux" for now
Browse files Browse the repository at this point in the history
  • Loading branch information
hellwolf committed May 25, 2024
1 parent 5296c62 commit 43697cd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
let
solc-macos-amd64-list = builtins.fromJSON (builtins.readFile solc-macos-amd64-list-json);
solc-pkgs-overlay =
final: prev: import ./mk-solc-pkgs.nix (prev // { inherit solc-macos-amd64-list; });
final: prev: import ./mk-solc-pkgs.nix prev { inherit solc-macos-amd64-list; };
in
flake-utils.lib.eachSystem
[
Expand Down
4 changes: 2 additions & 2 deletions mk-solc-pkgs.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{ solc-macos-amd64-list, ... }@pkgs:
pkgs : { solc-macos-amd64-list }:

builtins.foldl' (
all_binaries: binary:
let
pname = "solc_" + (builtins.replaceStrings [ "." ] [ "_" ] binary.version);
maybeSolc = (import ./mk-solc-static-pkg.nix) (pkgs // {
maybeSolc = import ./mk-solc-static-pkg.nix (pkgs // {
solc_ver = binary.version;
solc_sha256 = binary.sha256;
inherit solc-macos-amd64-list;
Expand Down
1 change: 1 addition & 0 deletions mk-solc-static-pkg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ let
inherit (stdenv.hostPlatform) system;
solc-flavor =
{
i686-linux = "solc-static-linux"; # this is weird
x86_64-linux = "solc-static-linux";
x86_64-darwin = "solc-macos-amd64";
aarch64-darwin = "solc-macos-aarch64";
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 43697cd

Please sign in to comment.