nixpkgs/pkgs/by-name/ig/ignite-cli/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

50 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
buildGoModule,
makeWrapper,
go,
buf,
}:
buildGoModule rec {
pname = "ignite-cli";
version = "28.6.0";
src = fetchFromGitHub {
repo = "cli";
owner = "ignite";
rev = "v${version}";
hash = "sha256-N1Wwy5iWQHREIof4TL6PVpNONSJ6R+OSUiOmdXN6+/4=";
};
vendorHash = "sha256-G54QYz1IkbYMQaUTnIAjfhv2Kj6YtKf68CFjqB2GgQ0=";
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";
};
}