blob: 929f9cd4435556b1114ad92b90bed6ea520c2b77 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ lib
, buildGoModule
, fetchFromGitHub
, git
, makeWrapper
}:
buildGoModule rec {
pname = "openapi-changes";
version = "0.0.65";
src = fetchFromGitHub {
owner = "pb33f";
repo = pname;
rev = "v${version}";
hash = "sha256-nqyKMlVx1WsbFk30XfnP/JQfy81kEYFEwLx1Tg0n7lQ=";
};
# this test requires the `.git` of the project to be present
patchPhase = ''
rm git/read_local_test.go
'';
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/openapi-changes --prefix PATH : ${lib.makeBinPath [ git ]}
'';
vendorHash = "sha256-VtwIAP2+FZ6Vpexcb9O68WfJdsTMrJn5bDjkxDe69e4=";
meta = with lib; {
description = "World's sexiest OpenAPI breaking changes detector";
homepage = "https://pb33f.io/openapi-changes/";
changelog = "https://github.com/pb33f/openapi-changes/releases/tag/v${version}";
license = licenses.gpl3;
maintainers = with maintainers; [ mguentner ];
};
}
|