1{
2 lib,
3 callPackage,
4 fetchFromGitHub,
5 stdenv,
6 zig_0_13,
7}:
8stdenv.mkDerivation rec {
9 pname = "superhtml";
10 version = "0.5.3";
11
12 src = fetchFromGitHub {
13 owner = "kristoff-it";
14 repo = "superhtml";
15 tag = "v${version}";
16 hash = "sha256-rO7HS07nSqwOq6345q/SOL2imoD0cKV16QJcVVr6mHw=";
17 };
18
19 nativeBuildInputs = [
20 zig_0_13.hook
21 ];
22
23 postPatch = ''
24 ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
25 '';
26
27 meta = with lib; {
28 description = "HTML Language Server and Templating Language Library";
29 homepage = "https://github.com/kristoff-it/superhtml";
30 license = licenses.mit;
31 mainProgram = "superhtml";
32 maintainers = with maintainers; [ petertriho ];
33 platforms = platforms.unix;
34 };
35}