@@ -1,28 +1,30 @@
11{ stdenv, fetchzip, fetchgit, boost, cmake }:
22
3−let jsoncpp = fetchzip {
4− url = https://github.com/open-source-parsers/jsoncpp/archive/1.7.7.tar.gz;
5− sha256 = "0jz93zv17ir7lbxb3dv8ph2n916rajs8i96immwx9vb45pqid3n0";
6−}; in
7−
8−let commit = "68ef5810593e7c8092ed41d5f474dd43141624eb"; in
3+let
4+ version = "0.4.12";
5+ rev = "194ff033ae44944ac59aa7bd3da89ba94ec5893c";
6+ sha256 = "0gkg3nay0625qmhxxxax1d1c4dl554ri3pkwd12qfg6g1w6j04w7";
7+ jsoncppURL = https://github.com/open-source-parsers/jsoncpp/archive/1.7.7.tar.gz;
8+ jsoncpp = fetchzip {
9+ url = jsoncppURL;
10+ sha256 = "0jz93zv17ir7lbxb3dv8ph2n916rajs8i96immwx9vb45pqid3n0";
11+ };
12+in
913
10−stdenv.mkDerivation rec {
11− version = "0.4.11";
14+stdenv.mkDerivation {
1215 name = "solc-${version}";
1316
1417 # Cannot use `fetchFromGitHub' because of submodules
1518 src = fetchgit {
1619 url = "https://github.com/ethereum/solidity";
17− rev = commit;
18− sha256 = "13zycybf23yvf3hkf9zgw9gbc1y4ifzxaf7sll69bsn24fcyq961";
20+ inherit rev sha256;
1921 };
2022
2123 patchPhase = ''
22− echo >commit_hash.txt ${commit}
24+ echo >commit_hash.txt '${rev}'
2325 echo >prerelease.txt
2426 substituteInPlace deps/jsoncpp.cmake \
25− --replace https://github.com/open-source-parsers/jsoncpp/archive/1.7.7.tar.gz ${jsoncpp}
27+ --replace '${jsoncppURL}' ${jsoncpp}
2628 substituteInPlace cmake/EthCompilerSettings.cmake \
2729 --replace 'add_compile_options(-Werror)' ""
2830 '';