Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
30 lines
757 B
Nix
30 lines
757 B
Nix
{ 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.hostPlatform.isDarwin;
|
|
};
|
|
}
|