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
pkgs.cosmos.lib.buildGoCosmosApp { # GoCosmosApp because there are non Go already
name = Required
version = Optional evaluated from go.mod or set
deps = Required vendroHash then build via buildGoModule else if gomod2nix file build via gomod2nix
buildInputs + prefixup = Optional if not contains wasmd and go.sum contains wasmd and version of wasmd parsed make wasmd work; will work with EVM/SVM machines too (Evmos/Sei)
goVersion = Optional : parsed from go.mod
rev = Optional: if set use it, if not set check src.rev, if not set and ser.rev empty trace warn non set
..rest-args passed to underlying builder as is - so people canfixup and extend as needed (SOLID)
}
fully forgot to set any version things. so export of some well known attrs in lib could be useful to handle nix native chains. also was thinking about to read out version from go.mod.
so really app version and wasmd input/fixup could be automated from parsing (and in future any well known cpp lib). so l need to set them directly, along with consensus engine.
This is a great idea, I wonder if we should write a small rust lib to do the parsing. The nix parsing logic is a bit unwieldy. Hopefully we could use an external lib without IFD? I am going to make an issue about this.
#201 (comment)
copy paste out of comment:
here is parser for go.mod:
https://github.com/nix-community/gomod2nix/blob/master/builder/parser.nix
go.sum is regexable
The text was updated successfully, but these errors were encountered: