Skip to content

Commit

Permalink
Merge branch 'main' into luca_joss/update-simapp-v8
Browse files Browse the repository at this point in the history
  • Loading branch information
ljoss17 authored Feb 6, 2024
2 parents 8ee4d14 + 937fa04 commit 3301f7a
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 29 deletions.
6 changes: 3 additions & 3 deletions flake.lock

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

19 changes: 10 additions & 9 deletions lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ nix-std: {
src,
engine,
vendorHash,
additionalLdFlags ? "",
additionalLdFlags ? [],
appName ? null,
preCheck ? null,
goVersion ? "1.19",
Expand Down Expand Up @@ -127,14 +127,15 @@ nix-std: {
if preCheck == null
then ''export HOME="$(mktemp -d)"''
else preCheck;
ldflags = ''
-X github.com/cosmos/cosmos-sdk/version.Name=${name}
-X github.com/cosmos/cosmos-sdk/version.AppName=${ldFlagAppName}
-X github.com/cosmos/cosmos-sdk/version.Version=${version}
-X github.com/cosmos/cosmos-sdk/version.Commit=${rev}
-X github.com/${engine}/version.TMCoreSemVer=${dependency-version}
${additionalLdFlags}
'';
ldflags =
[
"-X github.com/cosmos/cosmos-sdk/version.Name=${name}"
"-X github.com/cosmos/cosmos-sdk/version.AppName=${ldFlagAppName}"
"-X github.com/cosmos/cosmos-sdk/version.Version=${version}"
"-X github.com/cosmos/cosmos-sdk/version.Commit=${rev}"
"-X github.com/${engine}/version.TMCoreSemVer=${dependency-version}"
]
++ additionalLdFlags;
}
// buildGoModuleArgs);
in {
Expand Down
6 changes: 3 additions & 3 deletions packages/crescent.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mkCosmosGoApp {
vendorHash = "sha256-WLLQKXjPRhK19oEdqp2UBZpi9W7wtYjJMj07omH41K0=";
tags = ["netgo"];
engine = "tendermint/tendermint";
additionalLdFlags = ''
-X github.com/cosmos/cosmos-sdk/types.reDnmString=[a-zA-Z][a-zA-Z0-9/:]{2,127}
'';
additionalLdFlags = [
"-X github.com/cosmos/cosmos-sdk/types.reDnmString=[a-zA-Z][a-zA-Z0-9/:]{2,127}"
];
}
10 changes: 5 additions & 5 deletions packages/ignite-cli.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ buildGoModule rec {
src = ignite-cli-src;
vendorHash = "sha256-P1NYgvdobi6qy1sSKFwkBwPRpLuvCJE5rCD2s/vvm14=";
doCheck = false;
ldflags = ''
-X github.com/ignite/cli/ignite/version.Head=${src.rev}
-X github.com/ignite/cli/ignite/version.Version=v0.24.0
-X github.com/ignite/cli/ignite/version.Date=${builtins.toString (src.lastModified)}
'';
ldflags = [
"-X github.com/ignite/cli/ignite/version.Head=${src.rev}"
"-X github.com/ignite/cli/ignite/version.Version=v0.24.0"
"-X github.com/ignite/cli/ignite/version.Date=${builtins.toString (src.lastModified)}"
];
}
8 changes: 4 additions & 4 deletions packages/sifchain.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ mkCosmosGoApp {
vendorHash = "sha256-AX5jLfH9RnoGZm5MVyM69NnxVjYMR45CNaKzQn5hsXg=";
tags = ["netgo"];
engine = "tendermint/tendermint";
additionalLdFlags = ''
-X github.com/cosmos/cosmos-sdk/version.ServerName=sifnoded
-X github.com/cosmos/cosmos-sdk/version.ClientName=sifnoded
'';
additionalLdFlags = [
"-X github.com/cosmos/cosmos-sdk/version.ServerName=sifnoded"
"-X github.com/cosmos/cosmos-sdk/version.ClientName=sifnoded"
];
appName = "sifnoded";
doCheck = false;
}
10 changes: 5 additions & 5 deletions packages/simd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ buildGoModule {
"./orm"
"./store/tools"
];
ldflags = ''
-X github.com/cosmos/cosmos-sdk/version.AppName=simd
-X github.com/cosmos/cosmos-sdk/version.Version=v0.46.0
-X github.com/cosmos/cosmos-sdk/version.Commit=${cosmos-sdk-src.rev}
'';
ldflags = [
"-X github.com/cosmos/cosmos-sdk/version.AppName=simd"
"-X github.com/cosmos/cosmos-sdk/version.Version=v0.46.0"
"-X github.com/cosmos/cosmos-sdk/version.Commit=${cosmos-sdk-src.rev}"
];
}

0 comments on commit 3301f7a

Please sign in to comment.