File tree Expand file tree Collapse file tree 3 files changed +50
-0
lines changed
packages/cosmos-theta-testnet Expand file tree Collapse file tree 3 files changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,11 @@ _finalNixpkgs: prevNixpkgs: let
66 solana-full-sdk = prevNixpkgs . callPackage ./packages/solana-full-sdk {
77 inherit solana-rust-artifacts solana-bpf-tools ;
88 } ;
9+
10+ cosmos-theta-testnet = prevNixpkgs . callPackage ./packages/cosmos-theta-testnet { } ;
911in {
1012 metacraft-labs = rec {
1113 solana = solana-full-sdk ;
14+ inherit cosmos-theta-testnet ;
1215 } ;
1316}
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ fetchFromGitHub ,
5+ buildGoModule ,
6+ fetchurl ,
7+ } : let
8+ genesis = fetchurl {
9+ url = "https://github.com/hyphacoop/testnets/raw/add-theta-testnet/v7-theta/local-testnet/genesis.json.gz" ;
10+ sha256 = "0041873l59xapdxgb22b61rvqqp48laa3a5xcyim2dmjbc01zb5b" ;
11+ } ;
12+
13+ validator_key = fetchurl {
14+ url = "https://github.com/hyphacoop/testnets/raw/add-theta-testnet/v7-theta/local-testnet/priv_validator_key.json" ;
15+ sha256 = "0h4qx6iaqvklrzhj15nz8lz61ckf4dbfwp93fafmy4c2dc43fva8" ;
16+ } ;
17+ in
18+ buildGoModule rec {
19+ pname = "cosmos-theta-testnet" ;
20+ version = "1.0.0" ;
21+
22+ src = fetchFromGitHub {
23+ owner = "cosmos" ;
24+ repo = "gaia" ;
25+ rev = "edb81681654d0d111652df9fd933ed6e69d3c9fe" ;
26+ sha256 = "sha256-x0CvVxGKeDPY/oKHSUYffvFq0x83jfe2O7GSLJ8zevc=" ;
27+ } ;
28+
29+ preCheck = ''
30+ export HOME=$TMPDIR
31+ '' ;
32+ vendorSha256 = "sha256-fGRLYkxZDowkuHcX26aRclLind0PRKkC64CQBVrnBr8=" ;
33+ doCheck = false ;
34+ meta = with lib ; {
35+ description = "Simple command-line snippet manager, written in Go" ;
36+ homepage = "https://github.com/cosmos/gaia" ;
37+ license = licenses . mit ;
38+ maintainers = with maintainers ; [ ] ;
39+ } ;
40+
41+ postInstall = ''
42+ mkdir $out/data
43+ gunzip -c ${ genesis } > $out/data/genesis.json
44+ cp ${ validator_key } $out/data/priv_validator_key.json
45+ '' ;
46+ }
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ with pkgs;
1010
1111 # Packages defined in this repo
1212 metacraft-labs . solana
13+ metacraft-labs . cosmos-theta-testnet
1314 ] ;
1415
1516 shellHook = ''
You can’t perform that action at this time.
0 commit comments