nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildNpmPackage,
4 fetchFromGitHub,
5 versionCheckHook,
6 nix-update-script,
7}:
8
9buildNpmPackage rec {
10 pname = "httpyac";
11 version = "6.16.7";
12
13 src = fetchFromGitHub {
14 owner = "anweber";
15 repo = "httpyac";
16 tag = version;
17 hash = "sha256-6qhKOb2AJrDhZLRU6vrDfuW9KED+5TLf4hHH/0iADeA=";
18 };
19
20 npmDepsHash = "sha256-X3Yz+W7lijOLP+tEuO0JOpeOMOGdUYN6OpxPYHwFQEo=";
21
22 nativeInstallCheckInputs = [
23 versionCheckHook
24 ];
25 versionCheckProgramArg = "--version";
26 doInstallCheck = true;
27 passthru = {
28 updateScript = nix-update-script { };
29 };
30
31 meta = {
32 changelog = "https://github.com/anweber/httpyac/blob/${src.rev}/CHANGELOG.md";
33 description = "Command Line Interface for *.http and *.rest files. Connect with http, gRPC, WebSocket and MQTT";
34 homepage = "https://github.com/anweber/httpyac";
35 license = lib.licenses.mit;
36 mainProgram = "httpyac";
37 maintainers = with lib.maintainers; [ drupol ];
38 platforms = lib.platforms.all;
39 };
40}