about summary refs log tree commit diff
path: root/pkgs/by-name/sy/syntax/package.nix
blob: eceffd5aa0b4effb33c9159df17dfa711e89dae1 (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
{ lib
, fetchFromGitHub
, buildNpmPackage
, stdenv
, nix-update-script
}:

buildNpmPackage rec {
  pname = "syntax";
  version = "0.1.27";
  src = fetchFromGitHub {
    owner = "DmitrySoshnikov";
    repo = "syntax";
    rev = "v${version}";
    hash = "sha256-5ZbelnZQvJ9k4GbWR+lDEgxXGLt4VsXput9nBV8nUdc=";
  };

  npmDepsHash = "sha256-jZwbRGGg4tek6Jr+V7/SceJlsbIv7jFWQ+qa+fnChTw=";

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    homepage = "https://github.com/DmitrySoshnikov/syntax";
    description = "Syntactic analysis toolkit, language-agnostic parser generator";
    license = licenses.mit;
    maintainers = with maintainers; [ h7x4 ];
    mainProgram = "syntax-cli";
    broken = stdenv.isDarwin;
  };
}