Skip to content

Commit

Permalink
Add Gaia v19.1.0 (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljoss17 authored Aug 28, 2024
1 parent 145ce6c commit 22efb3f
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 1 deletion.
18 changes: 18 additions & 0 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 @@ -81,6 +81,9 @@
gaia-main-src.url = "github:cosmos/gaia";
gaia-main-src.flake = false;

gaia19-src.url = "github:cosmos/gaia/v19.1.0";
gaia19-src.flake = false;

gaia18-src.url = "github:cosmos/gaia/v18.1.0";
gaia18-src.flake = false;

Expand Down
1 change: 1 addition & 0 deletions lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ nix-std: {
buildGoModuleVersion = {
"1.21" = pkgs.buildGo121Module;
"1.22" = pkgs.buildGo122Module;
"1.23" = pkgs.buildGo123Module;
};

buildGoModule = buildGoModuleVersion.${goVersion};
Expand Down
4 changes: 4 additions & 0 deletions modules/apps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@
type = "app";
program = "${packages.gaia17}/bin/gaiad";
};
gaia19 = {
type = "app";
program = "${packages.gaia19}/bin/gaiad";
};
gaia-main = {
type = "app";
program = "${packages.gaia-main}/bin/gaiad";
Expand Down
2 changes: 1 addition & 1 deletion modules/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
(import ../packages/gaia.nix {
inherit inputs cosmosLib;
inherit (cosmosLib) mkCosmosGoApp;
inherit (self'.packages) libwasmvm_1_5_0;
inherit (self'.packages) libwasmvm_1_5_0 libwasmvm_2_0_0;
})
# IBC Go
(import ../packages/ibc-go.nix {
Expand Down
25 changes: 25 additions & 0 deletions packages/gaia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
inputs,
mkCosmosGoApp,
libwasmvm_1_5_0,
libwasmvm_2_0_0,
cosmosLib,
}: let
gaias = with inputs;
Expand Down Expand Up @@ -196,6 +197,30 @@
# Tests have to be disabled because they require Docker to run
doCheck = false;
};

gaia19 = {
name = "gaia";
vendorHash = "sha256-+9Q5Zcg/WtUPp1AbU9sGh9pxALjJesQ+m2sd4WQYOEs=";
version = "v19.1.0";
# nixpkgs latest go version v1.22 is v1.22.5 but Gaia v19.1.0 requires
# v1.22.6 or more so v1.23 is used instead
goVersion = "1.23";
src = gaia19-src;
rev = gaia19-src.rev;
tags = ["netgo"];
engine = "cometbft/cometbft";
proxyVendor = true;

preFixup = ''
${cosmosLib.wasmdPreFixupPhase libwasmvm_2_0_0 "gaiad"}
'';
buildInputs = [libwasmvm_2_0_0];

# Tests have to be disabled because they require Docker to run
doCheck = false;

excludedPackages = ["tests/interchain"];
};
};
in
gaias // {gaia-main = gaias.gaia8;}

0 comments on commit 22efb3f

Please sign in to comment.