laconicd/default.nix

36 lines
1.2 KiB
Nix
Raw Normal View History

2022-10-10 10:38:33 +00:00
{ lib
, buildGoApplication
, rev ? "dirty"
}:
let
version = "v0.17.1";
2022-10-13 05:53:17 +00:00
pname = "laconicd";
2022-10-10 10:38:33 +00:00
tags = [ "netgo" ];
ldflags = lib.concatStringsSep "\n" ([
"-X github.com/cosmos/cosmos-sdk/version.Name=ethermint"
"-X github.com/cosmos/cosmos-sdk/version.AppName=${pname}"
"-X github.com/cosmos/cosmos-sdk/version.Version=${version}"
"-X github.com/cosmos/cosmos-sdk/version.BuildTags=${lib.concatStringsSep "," tags}"
"-X github.com/cosmos/cosmos-sdk/version.Commit=${rev}"
]);
in
buildGoApplication rec {
inherit pname version tags ldflags;
src = lib.sourceByRegex ./. [
"^(x|app|cmd|client|server|crypto|rpc|types|encoding|ethereum|indexer|testutil|version|go.mod|go.sum|gomod2nix.toml)($|/.*)"
"^tests(/.*[.]go)?$"
];
modules = ./gomod2nix.toml;
doCheck = false;
pwd = src; # needed to support replace
2022-10-13 05:53:17 +00:00
subPackages = [ "cmd/laconicd" ];
2022-10-10 10:38:33 +00:00
CGO_ENABLED = "1";
meta = with lib; {
description = "Ethermint is a scalable and interoperable Ethereum library, built on Proof-of-Stake with fast-finality using the Cosmos SDK which runs on top of Tendermint Core consensus engine.";
homepage = "https://github.com/evmos/ethermint";
license = licenses.asl20;
2022-10-13 05:53:17 +00:00
mainProgram = "laconicd";
2022-10-10 10:38:33 +00:00
};
}