2017-03-04 10:38:42 +01:00
|
|
|
{ stdenv, fetchzip, fetchgit, boost, cmake }:
|
|
|
|
|
|
|
|
let jsoncpp = fetchzip {
|
|
|
|
url = https://github.com/open-source-parsers/jsoncpp/archive/1.7.7.tar.gz;
|
|
|
|
sha256 = "0jz93zv17ir7lbxb3dv8ph2n916rajs8i96immwx9vb45pqid3n0";
|
|
|
|
}; in
|
2016-08-11 14:51:44 +02:00
|
|
|
|
2017-05-19 16:34:10 +02:00
|
|
|
let commit = "68ef5810593e7c8092ed41d5f474dd43141624eb"; in
|
|
|
|
|
2016-08-11 14:51:44 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2017-05-19 16:34:10 +02:00
|
|
|
version = "0.4.11";
|
2016-08-11 14:51:44 +02:00
|
|
|
name = "solc-${version}";
|
|
|
|
|
2016-12-06 13:54:52 +01:00
|
|
|
# Cannot use `fetchFromGitHub' because of submodules
|
2016-11-25 19:10:02 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/ethereum/solidity";
|
2017-05-19 16:34:10 +02:00
|
|
|
rev = commit;
|
|
|
|
sha256 = "13zycybf23yvf3hkf9zgw9gbc1y4ifzxaf7sll69bsn24fcyq961";
|
2016-08-11 14:51:44 +02:00
|
|
|
};
|
|
|
|
|
2016-09-10 16:03:42 +02:00
|
|
|
patchPhase = ''
|
2017-05-19 16:34:10 +02:00
|
|
|
echo >commit_hash.txt ${commit}
|
|
|
|
echo >prerelease.txt
|
2017-03-04 10:38:42 +01:00
|
|
|
substituteInPlace deps/jsoncpp.cmake \
|
|
|
|
--replace https://github.com/open-source-parsers/jsoncpp/archive/1.7.7.tar.gz ${jsoncpp}
|
|
|
|
substituteInPlace cmake/EthCompilerSettings.cmake \
|
|
|
|
--replace 'add_compile_options(-Werror)' ""
|
2016-09-10 16:03:42 +02:00
|
|
|
'';
|
|
|
|
|
2017-03-04 10:38:42 +01:00
|
|
|
buildInputs = [ boost cmake ];
|
2016-08-11 14:51:44 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Compiler for Ethereum smart contract language Solidity";
|
|
|
|
longDescription = "This package also includes `lllc', the LLL compiler.";
|
|
|
|
homepage = https://github.com/ethereum/solidity;
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2016-08-17 23:30:27 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.dbrock ];
|
2016-08-11 14:51:44 +02:00
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
}
|