about summary refs log tree commit diff
path: root/pkgs/development/tools/redoc-cli/default.nix
blob: de30e43d5eaf9d2bbf0a2cf102145ba51e7fead7 (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
{ lib
, buildNpmPackage
, fetchFromGitHub
}:

buildNpmPackage rec {
  pname = "redoc-cli";
  version = "0.13.21";

  src = fetchFromGitHub {
    owner = "Redocly";
    repo = "redoc";
    rev = "d3ac16f4774ae5b5f698b4e8f4c1d3f5a009d361";
    hash = "sha256-LmNb+m1Ng/53SPUqrr/AmxNMiWsrMGCKow0DW/9t3Do=";
  };

  sourceRoot = "${src.name}/cli";

  npmDepsHash = "sha256-XL4D7+hb0zOxAr/aRo2UOg4UOip3oewbffsnkFddmWw=";

  postPatch = ''
    ln -s npm-shrinkwrap.json package-lock.json
  '';

  dontNpmBuild = true;

  meta = {
    description = "OpenAPI/Swagger-generated API Reference Documentation";
    homepage = "https://github.com/Redocly/redoc/tree/redoc-cli/cli";
    license = lib.licenses.mit;
    mainProgram = "redoc-cli";
    maintainers = with lib.maintainers; [ veehaitch ];
    # https://github.com/NixOS/nixpkgs/issues/272217
    broken = true;
  };
}