Skip to content

Commit

Permalink
Tentative update Celestia-appd to v2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ljoss17 committed Sep 2, 2024
1 parent 8963f6b commit 0a64d2a
Show file tree
Hide file tree
Showing 6 changed files with 757 additions and 23 deletions.
8 changes: 4 additions & 4 deletions flake.lock

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

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
migaloo-src.url = "github:White-Whale-Defi-Platform/migaloo-chain/v4.2.0";
migaloo-src.flake = false;

celestia-app-src.url = "github:celestiaorg/celestia-app/v1.14.0";
celestia-app-src.url = "github:celestiaorg/celestia-app/v2.1.2";
celestia-app-src.flake = false;

celestia-node-src.url = "github:celestiaorg/celestia-node/v0.13.0";
Expand Down
10 changes: 6 additions & 4 deletions modules/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
inherit pkgs;
inherit (inputs) beaker-src;
};
celestia-app = import ../packages/celestia-app.nix {
inherit (inputs) celestia-app-src;
inherit (cosmosLib) mkCosmosGoApp;
};
celestia-node = import ../packages/celestia-node.nix {
inherit (inputs) celestia-node-src;
inherit (cosmosLib) mkCosmosGoApp;
Expand Down Expand Up @@ -209,6 +205,12 @@
inherit cosmosLib;
inherit (self'.packages) libwasmvm_2_0_0;
})
# Celestia
(import ../packages/celestia-app {
inherit pkgs;
inherit (inputs) celestia-app-src;
inherit (cosmosLib) mkGenerator;
})
]
## Linux only packages
++ (lists.optionals pkgs.stdenv.isLinux
Expand Down
14 changes: 0 additions & 14 deletions packages/celestia-app.nix

This file was deleted.

18 changes: 18 additions & 0 deletions packages/celestia-app/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
mkGenerator,
celestia-app-src,
pkgs,
}: {
# NOTE: this uses `buildGoApplication` from `gomod2nix`. Which requires that you pre-generate
# the go.mod dependency hashes. Therefore you need to run `nix run .#gen-celestia-app` which is below
celestia-app = pkgs.buildGoApplication {
name = "celestia-app";
version = "v2.1.2";
src = celestia-app-src;
go = pkgs.go_1_23;
pwd = ./.;
modules = ./gomod2nix.toml;
doCheck = false;
};
gen-celestia-app = mkGenerator "gen-celestia" celestia-app-src;
}
Loading

0 comments on commit 0a64d2a

Please sign in to comment.