36 lines
753 B
Nix
36 lines
753 B
Nix
|
{
|
||
|
lib,
|
||
|
callPackage,
|
||
|
fetchFromGitHub,
|
||
|
stdenv,
|
||
|
zig,
|
||
|
}:
|
||
|
stdenv.mkDerivation rec {
|
||
|
pname = "superhtml";
|
||
|
version = "0.5.0";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "kristoff-it";
|
||
|
repo = "superhtml";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-E4IVDYps6K+SdemkfwtTjOE+Rdu8m4Itfd3Kv0XO7qk=";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
zig.hook
|
||
|
];
|
||
|
|
||
|
postPatch = ''
|
||
|
ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
|
||
|
'';
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "HTML Language Server and Templating Language Library";
|
||
|
homepage = "https://github.com/kristoff-it/superhtml";
|
||
|
license = licenses.mit;
|
||
|
mainProgram = "superhtml";
|
||
|
maintainers = with maintainers; [ petertriho ];
|
||
|
platforms = platforms.unix;
|
||
|
};
|
||
|
}
|