Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1.0 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
git,
gitUpdater,
makeWrapper,
}:
buildGoModule rec {
pname = "openapi-changes";
version = "0.0.78";
src = fetchFromGitHub {
owner = "pb33f";
repo = "openapi-changes";
rev = "v${version}";
hash = "sha256-Ct4VyYFqdMmROg9SE/pFNOJozSkQtKpgktJVgvtW/HA=";
};
# 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-bcQAXPw4x+oXx3L0vypbqp96nYdcjQo6M3yOwFbIdpg=";
passthru.updateScript = gitUpdater {
rev-prefix = "v";
};
meta = {
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 = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ mguentner ];
};
}