Skip to content

Commit d38f65f

Browse files
authored
Eos blockchain (#25)
1 parent b90dce1 commit d38f65f

File tree

6 files changed

+109
-0
lines changed

6 files changed

+109
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
jobs:
1313
Nix:
14+
timeout-minutes: 360
1415
strategy:
1516
matrix:
1617
os: [ ubuntu-latest, macos-12 ]

overlay.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ _finalNixpkgs: prevNixpkgs: let
3838
elrond-proxy-go = prevNixpkgs.callPackage ./packages/elrond-proxy-go/default.nix {};
3939

4040
go-opera = prevNixpkgs.callPackage ./packages/go-opera/default.nix {};
41+
42+
leap = prevNixpkgs.callPackage ./packages/leap/default.nix {};
43+
eos-vm = prevNixpkgs.callPackage ./packages/eos-vm/default.nix {};
44+
cdt = prevNixpkgs.callPackage ./packages/cdt/default.nix {};
4145
in {
4246
metacraft-labs = rec {
4347
solana = solana-full-sdk;
@@ -53,5 +57,8 @@ in {
5357
inherit elrond-go;
5458
inherit elrond-proxy-go;
5559
inherit go-opera;
60+
inherit leap;
61+
inherit eos-vm;
62+
inherit cdt;
5663
};
5764
}

packages/cdt/default.nix

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
clangStdenv,
3+
nodejs,
4+
fetchgit,
5+
pkgs,
6+
lib,
7+
}:
8+
clangStdenv.mkDerivation rec {
9+
name = "cdt";
10+
version = "3.0.1";
11+
buildInputs = with pkgs; [
12+
llvm
13+
curl.dev
14+
gmp.dev
15+
openssl.dev
16+
libusb1.dev
17+
bzip2.dev
18+
(boost.override
19+
{
20+
enableShared = false;
21+
enabledStatic = true;
22+
})
23+
];
24+
nativeBuildInputs = with pkgs; [pkgconfig cmake clang git python3];
25+
26+
src = fetchgit {
27+
url = "https://github.com/AntelopeIO/cdt";
28+
rev = "v${version}";
29+
sha256 = "sha256-Q6PNsG9c65h6VrY7tW3JNm1u7MEKVrJtzgjHvTlWDxQ=";
30+
};
31+
}

packages/eos-vm/default.nix

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
clangStdenv,
3+
nodejs,
4+
fetchgit,
5+
pkgs,
6+
lib,
7+
}:
8+
clangStdenv.mkDerivation rec {
9+
name = "eos-vm";
10+
version = "1.0.0-rc1";
11+
buildInputs = with pkgs; [
12+
llvm
13+
curl.dev
14+
gmp.dev
15+
openssl.dev
16+
libusb1.dev
17+
bzip2.dev
18+
(boost.override
19+
{
20+
enableShared = false;
21+
enabledStatic = true;
22+
})
23+
];
24+
nativeBuildInputs = with pkgs; [pkgconfig cmake clang git python3];
25+
26+
src = fetchgit {
27+
url = "https://github.com/AntelopeIO/eos-vm";
28+
sha256 = "sha256-td9LyVSNEzgUh7lZsJadUhJgQhduIpy4QQHvLk12Y9w=";
29+
};
30+
}

packages/leap/default.nix

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
clangStdenv,
3+
nodejs,
4+
fetchgit,
5+
pkgs,
6+
lib,
7+
}:
8+
clangStdenv.mkDerivation rec {
9+
name = "leap";
10+
version = "3.2.0";
11+
buildInputs = with pkgs; [
12+
llvm
13+
curl.dev
14+
gmp.dev
15+
openssl.dev
16+
libusb1.dev
17+
bzip2.dev
18+
(boost.override
19+
{
20+
enableShared = false;
21+
enabledStatic = true;
22+
})
23+
];
24+
nativeBuildInputs = with pkgs; [pkgconfig cmake clang git python3];
25+
26+
prePatch = ''
27+
sed -i 's#/usr/bin/env python3#${pkgs.python3}/bin/python3#' **/*.py
28+
'';
29+
30+
src = fetchgit {
31+
url = "https://github.com/AntelopeIO/leap";
32+
rev = "v${version}";
33+
sha256 = "sha256-AQ8VsbP/14E/6gr1WNNCJJkpoiAe4liPfE9057fn5lc=";
34+
};
35+
}

shell.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ with pkgs;
2424
metacraft-labs.erdpy
2525
metacraft-labs.elrond-go
2626
metacraft-labs.elrond-proxy-go
27+
28+
# EOS
29+
metacraft-labs.leap
30+
metacraft-labs.eos-vm
31+
metacraft-labs.cdt
2732
];
2833

2934
shellHook = ''

0 commit comments

Comments
 (0)