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
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildNpmPackage,
|
|
nodejs,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildNpmPackage (finalAttrs: {
|
|
pname = "openapi-down-convert";
|
|
version = "0.14.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "apiture";
|
|
repo = "openapi-down-convert";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-8csxj2HfOb9agDmwNmksNaiQhRd+3D1tf0vWU2w+XWw=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-5VgFAiphahDKz3ZhzNEdQOFxvhvDy+S/qOClqBgMzSg=";
|
|
|
|
postInstall = ''
|
|
find $out/lib -type f \( -name '*.ts' \) -delete
|
|
rm -r $out/lib/node_modules/@apiture/openapi-down-convert/node_modules/typescript
|
|
rm $out/lib/node_modules/@apiture/openapi-down-convert/node_modules/.bin/*
|
|
'';
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Convert an OpenAPI 3.1.x document to OpenAPI 3.0.x format";
|
|
homepage = "https://github.com/apiture/openapi-down-convert";
|
|
changelog = "https://github.com/apiture/openapi-down-convert/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ fliegendewurst ];
|
|
mainProgram = "openapi-down-convert";
|
|
};
|
|
})
|