nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 dontCheckForBrokenSymlinks = true;
22
23 passthru.updateScript = nix-update-script { };
24
25 meta = {
26 homepage = "https://github.com/DmitrySoshnikov/syntax";
27 description = "Syntactic analysis toolkit, language-agnostic parser generator";
28 license = lib.licenses.mit;
29 maintainers = with lib.maintainers; [ h7x4 ];
30 mainProgram = "syntax-cli";
31 broken = stdenv.hostPlatform.isDarwin;
32 };
33}