Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Add Nix build for celestia-app
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed Jan 19, 2024
1 parent 049c62e commit e5f95bb
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 3 deletions.
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.

18 changes: 15 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
flake-utils.url = github:numtide/flake-utils;

rust-overlay.url = github:oxalica/rust-overlay;

celestia-app-src = {
flake = false;
url = github:celestiaorg/celestia-app/v1.6.0;
};

};

outputs = inputs:
Expand All @@ -28,8 +34,8 @@
rust-bin = nixpkgs.rust-bin.stable.latest.complete;

risc0-rust-tarball = builtins.fetchurl {
url = "https://github.com/risc0/rust/releases/download/test-release-2/rust-toolchain-x86_64-unknown-linux-gnu.tar.gz";
sha256 = "sha256:1nqgpx6ww0rla5c4jzam6fr43v6lf0flsj572racjqwq9xk86l4a";
url = "https://github.com/risc0/rust/releases/download/test-release-2/rust-toolchain-x86_64-unknown-linux-gnu.tar.gz";
sha256 = "sha256:1nqgpx6ww0rla5c4jzam6fr43v6lf0flsj572racjqwq9xk86l4a";
};

risc0-rust = import ./nix/risc0.nix {
Expand All @@ -39,9 +45,15 @@
rollup-packages = import ./nix/rollup.nix {
inherit nixpkgs rust-bin risc0-rust;
};

celestia-app = import ./nix/celestia-app.nix {
inherit nixpkgs;

inherit (inputs) celestia-app-src;
};
in {
packages = {
inherit risc0-rust;
inherit risc0-rust celestia-app;
inherit (rollup-packages) rollup rollup-guest-mock rollup-guest-celestia;
};
});
Expand Down
14 changes: 14 additions & 0 deletions nix/celestia-app.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
nixpkgs
, celestia-app-src
}:
let
celestia-app = nixpkgs.buildGoModule {
name = "celestia";
version = "1.6.0";
src = celestia-app-src;
vendorHash = "sha256-KvkVqJZ5kvkKWXTYgG7+Ksz8aLhGZPBG5zkM44fVNT4=";
doCheck = false;
};
in
celestia-app

0 comments on commit e5f95bb

Please sign in to comment.