depot/pkgs/by-name/su/superhtml/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
753 B
Nix
Raw Normal View History

{
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;
};
}