openapi-changes: 0.0.68 -> 0.0.75
added gitUpdater for automatic updates switch back to buildGoModule
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
{
|
||||
lib,
|
||||
buildGo123Module,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
git,
|
||||
gitUpdater,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
buildGo123Module rec {
|
||||
buildGoModule rec {
|
||||
pname = "openapi-changes";
|
||||
version = "0.0.68";
|
||||
version = "0.0.75";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pb33f";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-v+THD4ZWnpeuxLfxaA4LUGdYV3X5rUKeCWq9HIub59Y=";
|
||||
hash = "sha256-/bUnCN+/Gs5RW3N5fl0/ucwMG4mrYPG0syYMMqIQzIQ=";
|
||||
};
|
||||
|
||||
# this test requires the `.git` of the project to be present
|
||||
@@ -28,7 +29,11 @@ buildGo123Module rec {
|
||||
wrapProgram $out/bin/openapi-changes --prefix PATH : ${lib.makeBinPath [ git ]}
|
||||
'';
|
||||
|
||||
vendorHash = "sha256-IiI+mSbJNEpM6rryGtAnGSOcY2RXnvqXTZmZ82L1HPc=";
|
||||
vendorHash = "sha256-bcQAXPw4x+oXx3L0vypbqp96nYdcjQo6M3yOwFbIdpg=";
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
rev-prefix = "v";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "World's sexiest OpenAPI breaking changes detector";
|
||||
|
||||
Reference in New Issue
Block a user