Loading pkgs/development/tools/cobra-cli/default.nix +17 −1 Original line number Diff line number Diff line { lib, buildGoModule, fetchFromGitHub }: { lib, buildGoModule, fetchFromGitHub, makeWrapper, go }: buildGoModule rec { pname = "cobra-cli"; Loading @@ -13,6 +13,22 @@ buildGoModule rec { vendorSha256 = "sha256-vrtGPQzY+NImOGaSxV+Dvch+GNPfL9XfY4lfCHTGXwY="; nativeBuildInputs = [ makeWrapper ]; allowGoReference = true; postPatch = '' substituteInPlace "cmd/add_test.go" \ --replace "TestGoldenAddCmd" "SkipGoldenAddCmd" substituteInPlace "cmd/init_test.go" \ --replace "TestGoldenInitCmd" "SkipGoldenInitCmd" ''; postFixup = '' wrapProgram "$out/bin/cobra-cli" \ --prefix PATH : ${go}/bin ''; meta = with lib; { description = "Cobra CLI tool to generate applications and commands"; homepage = "https://github.com/spf13/cobra-cli/"; Loading Loading
pkgs/development/tools/cobra-cli/default.nix +17 −1 Original line number Diff line number Diff line { lib, buildGoModule, fetchFromGitHub }: { lib, buildGoModule, fetchFromGitHub, makeWrapper, go }: buildGoModule rec { pname = "cobra-cli"; Loading @@ -13,6 +13,22 @@ buildGoModule rec { vendorSha256 = "sha256-vrtGPQzY+NImOGaSxV+Dvch+GNPfL9XfY4lfCHTGXwY="; nativeBuildInputs = [ makeWrapper ]; allowGoReference = true; postPatch = '' substituteInPlace "cmd/add_test.go" \ --replace "TestGoldenAddCmd" "SkipGoldenAddCmd" substituteInPlace "cmd/init_test.go" \ --replace "TestGoldenInitCmd" "SkipGoldenInitCmd" ''; postFixup = '' wrapProgram "$out/bin/cobra-cli" \ --prefix PATH : ${go}/bin ''; meta = with lib; { description = "Cobra CLI tool to generate applications and commands"; homepage = "https://github.com/spf13/cobra-cli/"; Loading