1{
2 lib,
3 fetchFromGitHub,
4 buildNpmPackage,
5 stdenv,
6 nix-update-script,
7}:
8
9buildNpmPackage rec {
10 pname = "syntax";
11 version = "0.1.27";
12 src = fetchFromGitHub {
13 owner = "DmitrySoshnikov";
14 repo = "syntax";
15 rev = "v${version}";
16 hash = "sha256-5ZbelnZQvJ9k4GbWR+lDEgxXGLt4VsXput9nBV8nUdc=";
17 };
18
19 npmDepsHash = "sha256-jZwbRGGg4tek6Jr+V7/SceJlsbIv7jFWQ+qa+fnChTw=";
20
21 passthru.updateScript = nix-update-script { };
22
23 meta = with lib; {
24 homepage = "https://github.com/DmitrySoshnikov/syntax";
25 description = "Syntactic analysis toolkit, language-agnostic parser generator";
26 license = licenses.mit;
27 maintainers = with maintainers; [ h7x4 ];
28 mainProgram = "syntax-cli";
29 broken = stdenv.hostPlatform.isDarwin;
30 };
31}