nixpkgs/pkgs/development/compilers/solc/default.nix

29 lines
775 B
Nix
Raw Normal View History

2016-08-11 14:51:44 +02:00
{ stdenv, fetchFromGitHub, boost, cmake, jsoncpp }:
stdenv.mkDerivation rec {
2016-11-02 16:29:03 +01:00
version = "0.4.4";
2016-08-11 14:51:44 +02:00
name = "solc-${version}";
src = fetchFromGitHub {
owner = "ethereum";
repo = "solidity";
rev = "v${version}";
2016-11-02 16:29:03 +01:00
sha256 = "150prr7m0jnx3vhq0wy3avzsijxd3pn7c8jxdvf6jkcc408dgn6z";
2016-08-11 14:51:44 +02:00
};
2016-09-10 16:03:42 +02:00
patchPhase = ''
2016-11-02 16:29:03 +01:00
echo >commit_hash.txt 4633f3def897db0f91237f98cf46e5d84fb05e61
2016-09-10 16:03:42 +02:00
'';
2016-08-11 14:51:44 +02: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 23:30:27 +02:00
maintainers = [ stdenv.lib.maintainers.dbrock ];
2016-08-11 14:51:44 +02:00
inherit version;
};
}