nixpkgs/pkgs/by-name/ig/ignite-cli/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.1 KiB
Nix
Raw Normal View History

2023-12-25 06:27:36 +00:00
{
lib,
fetchFromGitHub,
buildGoModule,
makeWrapper,
go,
buf,
}:
buildGoModule rec {
pname = "ignite-cli";
2024-11-27 04:10:12 +00:00
version = "28.6.0";
2023-12-25 06:27:36 +00:00
src = fetchFromGitHub {
repo = "cli";
owner = "ignite";
rev = "v${version}";
2024-11-27 04:10:12 +00:00
hash = "sha256-N1Wwy5iWQHREIof4TL6PVpNONSJ6R+OSUiOmdXN6+/4=";
2023-12-25 06:27:36 +00:00
};
2024-11-27 04:10:12 +00:00
vendorHash = "sha256-G54QYz1IkbYMQaUTnIAjfhv2Kj6YtKf68CFjqB2GgQ0=";
2023-12-25 06:27:36 +00:00
nativeBuildInputs = [ makeWrapper ];
# Many tests require access to either executables, state or networking
doCheck = false;
# Required for wrapProgram
allowGoReference = true;
# Required for commands like `ignite version`, `ignite network` and others
postFixup = ''
wrapProgram $out/bin/ignite --prefix PATH : ${
lib.makeBinPath [
go
buf
]
}
'';
meta = with lib; {
homepage = "https://ignite.com/";
changelog = "https://github.com/ignite/cli/releases/tag/v${version}";
description = "All-in-one platform to build, launch, and maintain any crypto application on a sovereign and secured blockchain";
license = licenses.asl20;
maintainers = with maintainers; [ kashw2 ];
mainProgram = "ignite";
};
}