1 { lib, buildGoModule, fetchFromGitHub, makeWrapper, go }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-E0I/Pxw4biOv7aGVzGlQOFXnxkc+zZaEoX1JmyMh6UE=";
14 vendorHash = "sha256-vrtGPQzY+NImOGaSxV+Dvch+GNPfL9XfY4lfCHTGXwY=";
16 nativeBuildInputs = [ makeWrapper ];
18 allowGoReference = true;
21 substituteInPlace "cmd/add_test.go" \
22 --replace "TestGoldenAddCmd" "SkipGoldenAddCmd"
23 substituteInPlace "cmd/init_test.go" \
24 --replace "TestGoldenInitCmd" "SkipGoldenInitCmd"
28 wrapProgram "$out/bin/cobra-cli" \
29 --prefix PATH : ${go}/bin
33 description = "Cobra CLI tool to generate applications and commands";
34 mainProgram = "cobra-cli";
35 homepage = "https://github.com/spf13/cobra-cli/";
36 changelog = "https://github.com/spf13/cobra-cli/releases/tag/${version}";
37 license = licenses.afl20;
38 maintainers = [ maintainers.ivankovnatsky ];