You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building the flake with nix build .#penumbra fails. Here is the relevant part of the error message:
error: couldn't read crates/view/src/storage/schema.sql: No such file or directory (os error 2)
--> crates/view/src/storage.rs:58:45
|
58 | Lazy::new(|| hex::encode(Sha256::digest(include_str!("storage/schema.sql"))));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)
error: couldn't read crates/view/src/storage/schema.sql: No such file or directory (os error 2)
--> crates/view/src/storage.rs:216:30
|
216 | tx.execute_batch(include_str!("storage/schema.sql"))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `penumbra-view` (lib) due to 2 previous errors
Chasing this error, it becomes apparent that none of the include_str! things in the crate build correctly. However, the Nix formula in https://github.com/starlingcyber/infra/blob/main/packages/penumbra.nix does work. Comparing the two, we see that this repo's flake builds Penumbra like this:
penumbra=(craneLib.buildPackage{pname="penumbra";src=cleanSourceWith{src=ifpenumbraRelease==nullthencraneLib.path./.elsefetchFromGitHub{owner="penumbra-zone";repo="penumbra";rev="v${penumbraRelease.version}";sha256="${penumbraRelease.sha256}";};filter=path: type:
# Retain proving and verification parameters, and no-lfs marker file ...(builtins.match".*\.(no_lfs|param|bin)$"path!=null)||# ... as well as all the normal cargo source files:(craneLib.filterCargoSourcespathtype);};nativeBuildInputs=[pkg-config];buildInputs=ifstdenv.hostPlatform.isDarwinthenwithpkgs.darwin.apple_sdk.frameworks;[clangopensslrocksdbSystemConfigurationCoreServices]else[clangopensslrocksdb];inheritsystemPKG_CONFIG_PATHLIBCLANG_PATHROCKSDB_LIB_DIR;cargoExtraArgs="-p pd -p pcli -p pclientd";meta={description="A fully private proof-of-stake network and decentralized exchange for the Cosmos ecosystem";homepage="https://penumbra.zone";license=[licenses.mitlicenses.asl20];};}).overrideAttrs(_: {doCheck=false;});
Compared to the formula to build Penumbra in the linked repo, which works:
(craneLib.buildPackage{pname=name;src=cleanSourceWith{src=(fetchgit{url="https://github.com/${owner}/${repo}";rev="v${version}";sha256=hash;fetchLFS=true;});filter=path: type:
# Retain proving and verification parameters, and no-lfs marker file ...(builtins.match".*\.(no_lfs|param||bin)$"path!=null)||# ... as well as all the normal cargo source files:(craneLib.filterCargoSourcespathtype);};nativeBuildInputs=[pkg-config];buildInputs=[clangopenssl];inheritsystemPKG_CONFIG_PATHLIBCLANG_PATH;cargoExtraArgs="-p pd -p pcli -p pclientd -p pindexer";}).overrideAttrs(_: {doCheck=false;})
It is not clear to me why the former fails with these file-not-found errors, but the latter succeeds.
The text was updated successfully, but these errors were encountered:
Building the flake with
nix build .#penumbra
fails. Here is the relevant part of the error message:Chasing this error, it becomes apparent that none of the
include_str!
things in the crate build correctly. However, the Nix formula in https://github.com/starlingcyber/infra/blob/main/packages/penumbra.nix does work. Comparing the two, we see that this repo's flake builds Penumbra like this:Compared to the formula to build Penumbra in the linked repo, which works:
It is not clear to me why the former fails with these file-not-found errors, but the latter succeeds.
The text was updated successfully, but these errors were encountered: