diff --git a/flake.lock b/flake.lock index 28fe727..d4ea077 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,22 @@ { "nodes": { + "celestia-app-src": { + "flake": false, + "locked": { + "lastModified": 1701725061, + "narHash": "sha256-QwTqS/Ls93qKbbmcdChTsJYW5G91sZdu32nE9j+gvzA=", + "owner": "celestiaorg", + "repo": "celestia-app", + "rev": "6f19fd83c4d0061c717a40e23a368a2f60aff715", + "type": "github" + }, + "original": { + "owner": "celestiaorg", + "ref": "v1.6.0", + "repo": "celestia-app", + "type": "github" + } + }, "flake-utils": { "inputs": { "systems": "systems" @@ -70,6 +87,7 @@ }, "root": { "inputs": { + "celestia-app-src": "celestia-app-src", "flake-utils": "flake-utils", "nixpkgs": "nixpkgs", "rust-overlay": "rust-overlay" diff --git a/flake.nix b/flake.nix index 2a3dfad..f0ba3e8 100644 --- a/flake.nix +++ b/flake.nix @@ -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: @@ -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 { @@ -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; }; }); diff --git a/nix/celestia-app.nix b/nix/celestia-app.nix new file mode 100644 index 0000000..75b2bd6 --- /dev/null +++ b/nix/celestia-app.nix @@ -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 \ No newline at end of file