summaryrefslogtreecommitdiff
path: root/pkgs/by-name/ht/httpyac/package.nix
blob: df8d7f93362d06c51209fed8cea11810e93cde15 (about) (plain)
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
37
38
39
40
{
  lib,
  buildNpmPackage,
  fetchFromGitHub,
  versionCheckHook,
  nix-update-script,
}:

buildNpmPackage rec {
  pname = "httpyac";
  version = "6.16.7";

  src = fetchFromGitHub {
    owner = "anweber";
    repo = "httpyac";
    tag = version;
    hash = "sha256-6qhKOb2AJrDhZLRU6vrDfuW9KED+5TLf4hHH/0iADeA=";
  };

  npmDepsHash = "sha256-X3Yz+W7lijOLP+tEuO0JOpeOMOGdUYN6OpxPYHwFQEo=";

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgramArg = "--version";
  doInstallCheck = true;
  passthru = {
    updateScript = nix-update-script { };
  };

  meta = {
    changelog = "https://github.com/anweber/httpyac/blob/${src.rev}/CHANGELOG.md";
    description = "Command Line Interface for *.http and *.rest files. Connect with http, gRPC, WebSocket and MQTT";
    homepage = "https://github.com/anweber/httpyac";
    license = lib.licenses.mit;
    mainProgram = "httpyac";
    maintainers = with lib.maintainers; [ drupol ];
    platforms = lib.platforms.all;
  };
}