nixpkgs/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

2024-09-23 05:17:02 +00:00
{
lib,
callPackage,
fetchFromGitHub,
stdenv,
zig,
}:
stdenv.mkDerivation rec {
pname = "superhtml";
2024-10-31 05:26:30 +00:00
version = "0.5.1";
2024-09-23 05:17:02 +00:00
src = fetchFromGitHub {
owner = "kristoff-it";
repo = "superhtml";
rev = "refs/tags/v${version}";
2024-10-31 05:26:30 +00:00
hash = "sha256-ubFFFHlYTYmivVI5hd/Mj+jFIBuPQ/IycNv3BLxkeuc=";
2024-09-23 05:17:02 +00:00
};
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;
};
}