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

29 lines
848 B
Nix
Raw Normal View History

2016-11-25 10:10:02 -08:00
{ stdenv, fetchgit, boost, cmake, jsoncpp }:
2016-08-11 05:51:44 -07:00
stdenv.mkDerivation rec {
2016-11-25 10:10:02 -08:00
version = "0.4.6";
2016-08-11 05:51:44 -07:00
name = "solc-${version}";
# Cannot use `fetchFromGitHub' because of submodules
2016-11-25 10:10:02 -08:00
src = fetchgit {
url = "https://github.com/ethereum/solidity";
rev = "2dabbdf06f414750ef0425c664f861aeb3e470b8";
sha256 = "0q1dvizx60f7l97w8241wra7vpghimc9x7gzb18vn34sxv4bqy9g";
2016-08-11 05:51:44 -07:00
};
2016-09-10 07:03:42 -07:00
patchPhase = ''
2016-11-25 10:10:02 -08:00
echo >commit_hash.txt 2dabbdf06f414750ef0425c664f861aeb3e470b8
2016-09-10 07:03:42 -07:00
'';
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;
};
}