lol

Merge pull request #214715 from viraptor/viraptor/cobra-cli-year-fix

cobra-cli: fix the build

authored by

Stanisław Pitucha and committed by
GitHub
918fa4e3 4a52cf21

+17 -1
+17 -1
pkgs/development/tools/cobra-cli/default.nix
··· 1 - { lib, buildGoModule, fetchFromGitHub }: 1 + { lib, buildGoModule, fetchFromGitHub, makeWrapper, go }: 2 2 3 3 buildGoModule rec { 4 4 pname = "cobra-cli"; ··· 12 12 }; 13 13 14 14 vendorSha256 = "sha256-vrtGPQzY+NImOGaSxV+Dvch+GNPfL9XfY4lfCHTGXwY="; 15 + 16 + nativeBuildInputs = [ makeWrapper ]; 17 + 18 + allowGoReference = true; 19 + 20 + postPatch = '' 21 + substituteInPlace "cmd/add_test.go" \ 22 + --replace "TestGoldenAddCmd" "SkipGoldenAddCmd" 23 + substituteInPlace "cmd/init_test.go" \ 24 + --replace "TestGoldenInitCmd" "SkipGoldenInitCmd" 25 + ''; 26 + 27 + postFixup = '' 28 + wrapProgram "$out/bin/cobra-cli" \ 29 + --prefix PATH : ${go}/bin 30 + ''; 15 31 16 32 meta = with lib; { 17 33 description = "Cobra CLI tool to generate applications and commands";