Skip to content

Commit

Permalink
solc: v0.4.13 -> v0.4.16 (#28732)
Browse files Browse the repository at this point in the history
Also add the Z3 SMT solver as a dependency, since the new solc can use
it for checking assertions and stuff (which is awesome).
  • Loading branch information
mbrock authored and fpletz committed Aug 30, 2017
1 parent e36afa8 commit 3d107c1
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pkgs/development/compilers/solc/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{ stdenv, fetchzip, fetchgit, boost, cmake }:
{ stdenv, fetchzip, fetchgit, boost, cmake, z3 }:

let
version = "0.4.13";
rev = "0fb4cb1ab9bb4b6cc72e28cc5a1753ad14781f14";
sha256 = "0rhrm0bmk5s2358j40yx7dzr1938q17dchzflrxw6y7yvkhscxrm";
version = "0.4.16";
rev = "d7661dd97460250b4e1127b9e7ea91e116143780";
sha256 = "1fd69pdhkkkvbkrxipkck1icpqkpdskjzar48a1yzdsx3l8s4lil";
jsoncppURL = https://github.com/open-source-parsers/jsoncpp/archive/1.7.7.tar.gz;
jsoncpp = fetchzip {
url = jsoncppURL;
Expand All @@ -27,12 +27,14 @@ stdenv.mkDerivation {
--replace '${jsoncppURL}' ${jsoncpp}
substituteInPlace cmake/EthCompilerSettings.cmake \
--replace 'add_compile_options(-Werror)' ""
substituteInPlace cmake/EthDependencies.cmake \
--replace 'set(Boost_USE_STATIC_LIBS ON)' \
'set(Boost_USE_STATIC_LIBS OFF)'
'';

buildInputs = [ boost cmake ];
cmakeFlags = [
"-DBoost_USE_STATIC_LIBS=OFF"
];

nativeBuildInputs = [ cmake ];
buildInputs = [ boost z3 ];

meta = {
description = "Compiler for Ethereum smart contract language Solidity";
Expand Down

0 comments on commit 3d107c1

Please sign in to comment.