Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildNpmPackage, 4 fetchFromGitHub, 5}: 6 7buildNpmPackage rec { 8 pname = "redoc-cli"; 9 version = "0.13.21"; 10 11 src = fetchFromGitHub { 12 owner = "Redocly"; 13 repo = "redoc"; 14 rev = "d3ac16f4774ae5b5f698b4e8f4c1d3f5a009d361"; 15 hash = "sha256-LmNb+m1Ng/53SPUqrr/AmxNMiWsrMGCKow0DW/9t3Do="; 16 }; 17 18 sourceRoot = "${src.name}/cli"; 19 20 npmDepsHash = "sha256-XL4D7+hb0zOxAr/aRo2UOg4UOip3oewbffsnkFddmWw="; 21 22 postPatch = '' 23 ln -s npm-shrinkwrap.json package-lock.json 24 ''; 25 26 dontNpmBuild = true; 27 28 meta = { 29 description = "OpenAPI/Swagger-generated API Reference Documentation"; 30 homepage = "https://github.com/Redocly/redoc/tree/redoc-cli/cli"; 31 license = lib.licenses.mit; 32 mainProgram = "redoc-cli"; 33 maintainers = with lib.maintainers; [ veehaitch ]; 34 # https://github.com/NixOS/nixpkgs/issues/272217 35 broken = true; 36 }; 37}