summary refs log tree commit diff
path: root/pkgs/development/compilers/solc/default.nix
blob: e38983cea6ed2e6fc74282516c0472330c63d515 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchgit, boost, cmake, jsoncpp }:

stdenv.mkDerivation rec {
  version = "0.4.6";
  name = "solc-${version}";

  src = fetchgit {
    url = "https://github.com/ethereum/solidity";
    rev = "2dabbdf06f414750ef0425c664f861aeb3e470b8";
    sha256 = "0q1dvizx60f7l97w8241wra7vpghimc9x7gzb18vn34sxv4bqy9g";
  };

  patchPhase = ''
    echo >commit_hash.txt 2dabbdf06f414750ef0425c664f861aeb3e470b8
  '';

  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;
    maintainers = [ stdenv.lib.maintainers.dbrock ];
    inherit version;
  };
}