nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildGoModule,
5 makeWrapper,
6 go,
7 buf,
8}:
9
10buildGoModule rec {
11 pname = "ignite-cli";
12 version = "28.11.0";
13
14 src = fetchFromGitHub {
15 repo = "cli";
16 owner = "ignite";
17 rev = "v${version}";
18 hash = "sha256-guhUvTyUy4YXn0+vtTpIehS731B0Htv9jai6yQ6gRP0=";
19 };
20
21 vendorHash = "sha256-qbHmF+aE/rF0cm4QARVWOUBogBvfdlCUNaCdFRywt1I=";
22
23 nativeBuildInputs = [ makeWrapper ];
24
25 # Many tests require access to either executables, state or networking
26 doCheck = false;
27
28 # Required for wrapProgram
29 allowGoReference = true;
30
31 # Required for commands like `ignite version`, `ignite network` and others
32 postFixup = ''
33 wrapProgram $out/bin/ignite --prefix PATH : ${
34 lib.makeBinPath [
35 go
36 buf
37 ]
38 }
39 '';
40
41 meta = {
42 homepage = "https://ignite.com/";
43 changelog = "https://github.com/ignite/cli/releases/tag/v${version}";
44 description = "All-in-one platform to build, launch, and maintain any crypto application on a sovereign and secured blockchain";
45 license = lib.licenses.asl20;
46 maintainers = with lib.maintainers; [ kashw2 ];
47 mainProgram = "ignite";
48 };
49}