|
4 | 4 | inputs = { |
5 | 5 | flake-utils.url = "github:numtide/flake-utils"; |
6 | 6 | nixpkgs.url = "github:nixos/nixpkgs"; |
7 | | - # nixpkgs with working solc |
8 | | - nixpkgs-solc.url = "github:nixos/nixpkgs/1b71def42b74811323de2df52f180b795ec506fc"; |
9 | 7 | foundry.url = "github:shazow/foundry.nix/monthly"; |
10 | 8 | flake-compat = { |
11 | 9 | url = "github:edolstra/flake-compat"; |
|
21 | 19 | }; |
22 | 20 | }; |
23 | 21 |
|
24 | | - outputs = { self, nixpkgs, nixpkgs-solc, flake-utils, solidity, ethereum-tests, foundry, ... }: |
| 22 | + outputs = { self, nixpkgs, flake-utils, solidity, ethereum-tests, foundry, ... }: |
25 | 23 | flake-utils.lib.eachDefaultSystem (system: |
26 | 24 | let |
27 | 25 | pkgs = nixpkgs.legacyPackages.${system}; |
28 | | - solc' = nixpkgs-solc.legacyPackages.${system}.solc; |
29 | 26 | testDeps = with pkgs; [ |
30 | 27 | go-ethereum |
31 | | - solc' |
| 28 | + solc |
32 | 29 | z3 |
33 | 30 | cvc5 |
34 | 31 | git |
|
70 | 67 | ]).overrideAttrs(final: prev: { |
71 | 68 | HEVM_SOLIDITY_REPO = solidity; |
72 | 69 | HEVM_ETHEREUM_TESTS_REPO = ethereum-tests; |
73 | | - DAPP_SOLC = "${solc'}/bin/solc"; |
| 70 | + DAPP_SOLC = "${pkgs.solc}/bin/solc"; |
74 | 71 | }); |
75 | 72 |
|
76 | 73 | # wrapped binary for use on systems with nix available. ensures all |
|
81 | 78 | buildInputs = [ makeWrapper ]; |
82 | 79 | postBuild = '' |
83 | 80 | wrapProgram $out/bin/hevm \ |
84 | | - --prefix PATH : "${lib.makeBinPath ([ bash coreutils git solc' z3 cvc5 ])}" |
| 81 | + --prefix PATH : "${lib.makeBinPath ([ bash coreutils git solc z3 cvc5 ])}" |
85 | 82 | ''; |
86 | 83 | }; |
87 | 84 |
|
|
157 | 154 | # NOTE: hacks for bugged cabal new-repl |
158 | 155 | LD_LIBRARY_PATH = libraryPath; |
159 | 156 | HEVM_SOLIDITY_REPO = solidity; |
160 | | - DAPP_SOLC = "${solc'}/bin/solc"; |
| 157 | + DAPP_SOLC = "${pkgs.solc}/bin/solc"; |
161 | 158 | HEVM_ETHEREUM_TESTS_REPO = ethereum-tests; |
162 | 159 | shellHook = lib.optionalString stdenv.isDarwin '' |
163 | 160 | export DYLD_LIBRARY_PATH="${libraryPath}"; |
|
0 commit comments