mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
solc: 0.4.11 -> 0.4.12
This commit is contained in:
parent
8210d86041
commit
5b9f4e160d
@ -1,28 +1,30 @@
|
|||||||
{ stdenv, fetchzip, fetchgit, boost, cmake }:
|
{ stdenv, fetchzip, fetchgit, boost, cmake }:
|
||||||
|
|
||||||
let jsoncpp = fetchzip {
|
let
|
||||||
url = https://github.com/open-source-parsers/jsoncpp/archive/1.7.7.tar.gz;
|
version = "0.4.12";
|
||||||
sha256 = "0jz93zv17ir7lbxb3dv8ph2n916rajs8i96immwx9vb45pqid3n0";
|
rev = "194ff033ae44944ac59aa7bd3da89ba94ec5893c";
|
||||||
}; in
|
sha256 = "0gkg3nay0625qmhxxxax1d1c4dl554ri3pkwd12qfg6g1w6j04w7";
|
||||||
|
jsoncppURL = https://github.com/open-source-parsers/jsoncpp/archive/1.7.7.tar.gz;
|
||||||
|
jsoncpp = fetchzip {
|
||||||
|
url = jsoncppURL;
|
||||||
|
sha256 = "0jz93zv17ir7lbxb3dv8ph2n916rajs8i96immwx9vb45pqid3n0";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
let commit = "68ef5810593e7c8092ed41d5f474dd43141624eb"; in
|
stdenv.mkDerivation {
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
version = "0.4.11";
|
|
||||||
name = "solc-${version}";
|
name = "solc-${version}";
|
||||||
|
|
||||||
# Cannot use `fetchFromGitHub' because of submodules
|
# Cannot use `fetchFromGitHub' because of submodules
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://github.com/ethereum/solidity";
|
url = "https://github.com/ethereum/solidity";
|
||||||
rev = commit;
|
inherit rev sha256;
|
||||||
sha256 = "13zycybf23yvf3hkf9zgw9gbc1y4ifzxaf7sll69bsn24fcyq961";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
echo >commit_hash.txt ${commit}
|
echo >commit_hash.txt '${rev}'
|
||||||
echo >prerelease.txt
|
echo >prerelease.txt
|
||||||
substituteInPlace deps/jsoncpp.cmake \
|
substituteInPlace deps/jsoncpp.cmake \
|
||||||
--replace https://github.com/open-source-parsers/jsoncpp/archive/1.7.7.tar.gz ${jsoncpp}
|
--replace '${jsoncppURL}' ${jsoncpp}
|
||||||
substituteInPlace cmake/EthCompilerSettings.cmake \
|
substituteInPlace cmake/EthCompilerSettings.cmake \
|
||||||
--replace 'add_compile_options(-Werror)' ""
|
--replace 'add_compile_options(-Werror)' ""
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user