Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Namada chain #193

Merged
merged 9 commits into from
Dec 21, 2023
Merged
62 changes: 40 additions & 22 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -238,5 +238,8 @@

cw-plus-src.url = "github:CosmWasm/cw-plus/v1.1.2";
cw-plus-src.flake = false;

namada-src.url = "github:anoma/namada/v0.28.1";
namada-src.flake = false;
};
}
4 changes: 4 additions & 0 deletions modules/apps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@
type = "app";
program = "${packages.provenance}/bin/provenanced";
};
namada = {
type = "app";
program = "${packages.namada}/bin/namada";
};
};
};
}
4 changes: 4 additions & 0 deletions modules/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@
inherit (self'.packages) libwasmvm_1_2_3;
inherit cosmosLib;
};
namada = import ../packages/namada.nix {
inherit pkgs;
inherit (inputs) namada-src;
};
}
# This list contains attr sets that are recursively merged into the
# base attrset
Expand Down
1 change: 0 additions & 1 deletion packages/hermes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ pkgs.rustPlatform.buildRustPackage {
nativeBuildInputs = with pkgs; [rust-bin.stable.latest.default] ++ lib.lists.optionals stdenv.isDarwin [darwin.apple_sdk.frameworks.Security];
cargoSha256 = "sha256-xCSH8L8do6mS3NKPBZoXKrbJizEDiCJrZnUeG0aisRE=";
doCheck = false;
cargoCheckCommand = "true";
}
2 changes: 1 addition & 1 deletion packages/interchain-security.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mkCosmosGoApp {
appName = "interchain-security";
version = "v3.0.0-pre";
src = interchain-security-src;
vendorHash = "sha256-TnU7lJnoD/ZzPS2XfvFGkb/ycLbH3iHvKRim+31+Yro=";
vendorHash = "sha256-j0xus8vN6bnFMUXyvT8r7ONPQyaEBydKQ8qH2BevWPs=";
tags = ["netgo"];
engine = "cometbft/cometbft";
doCheck = false; # tests are currently failing
Expand Down
42 changes: 42 additions & 0 deletions packages/namada.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
pkgs,
namada-src,
}:
pkgs.rustPlatform.buildRustPackage {
pname = "namada";
version = "v0.28.1";
src = namada-src;
nativeBuildInputs = with pkgs;
(
if stdenv.isLinux
then [pkg-config]
else [darwin.apple_sdk.frameworks.Security]
)
++ [
protobuf
rustPlatform.bindgenHook # required for bindgen in custom build script for librocksdb-sys
];
buildInputs = with pkgs;
lib.optionals stdenv.isLinux [
systemd # required for libudev in custom build script for hidapi
openssl
openssl.dev
];
cargoLock = {
lockFile = "${namada-src}/Cargo.lock";
outputHashes = {
"borsh-ext-1.2.0" = "sha256-nQadqyeAY0/gEMLBkpqtSm5D7kV+r3LVT/Cg2oTV7Ug=";
"clru-0.5.0" = "sha256-/1NfKqcWGCyF3+f0v2CnuFmNjjKkzfvYcX+GzxLwz7s=";
"ethbridge-bridge-contract-0.24.0" = "sha256-qs81bIWKk4oxh6nFWqAt4eBbPuIWF2a3ytUSjDJZWSU=";
"index-set-0.8.0" = "sha256-oxJfQdKnYiW5VbMPuukVyDY5n8mys31hYNrJF89nXhY=";
"ledger-namada-rs-0.0.1" = "sha256-qFL8LU7i5NAnMUhtrGykVfiYX1NodCNkZG07twyVrac=";
"masp_note_encryption-1.0.0" = "sha256-NwiosHTdzzny+L5VtOBaIa7wia/yRlfiz/8f0pAHUZk=";
"sparse-merkle-tree-0.3.1-pre" = "sha256-B1ZEN4FZjV0x0Cqvx7AZjH9qhDMZYFPVJzg89dqWCv4=";
"tiny-bip39-0.8.2" = "sha256-TU+7Vug3+M6Zxhy6Wln54Pxc9ES4EdFq5TvMOcAG+qA=";
"tower-abci-0.11.1" = "sha256-KisZtsylvUymvV1TpDdGIiE7fSarcuD3I8oZ33BdKTU=";
"wasmer-2.3.0" = "sha256-Fd8ewAwslopjqUVoeHwSR/Zoh4Zm+Sdx8oksXmhLU20=";
"zcash_encoding-0.2.0" = "sha256-keuaoM/t1Q/+8JMemMMUuIo4g5I/EAoONFge+dyWGy0=";
};
};
doCheck = false;
}