2016-08-11 05:51:44 -07:00
|
|
|
{ stdenv, fetchFromGitHub, boost, cmake, jsoncpp }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-09-10 07:03:42 -07:00
|
|
|
version = "0.4.1";
|
2016-08-11 05:51:44 -07:00
|
|
|
name = "solc-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ethereum";
|
|
|
|
repo = "solidity";
|
|
|
|
rev = "v${version}";
|
2016-09-10 07:03:42 -07:00
|
|
|
sha256 = "0ww8s0dngx6sbjyz7pr14xl3bbmfzx3nwc8xd9fx8ddg9682cwry";
|
2016-08-11 05:51:44 -07:00
|
|
|
};
|
|
|
|
|
2016-09-10 07:03:42 -07:00
|
|
|
patchPhase = ''
|
|
|
|
echo >commit_hash.txt 4fc6fc2ca59579fae2472df319c2d8d31fe5bde5
|
|
|
|
'';
|
|
|
|
|
2016-08-11 05:51:44 -07:00
|
|
|
buildInputs = [ boost cmake jsoncpp ];
|
|
|
|
|
|
|
|
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 14:30:27 -07:00
|
|
|
maintainers = [ stdenv.lib.maintainers.dbrock ];
|
2016-08-11 05:51:44 -07:00
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
}
|