Skip to content

Commit

Permalink
superhtml: init at 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
petertriho committed Sep 29, 2024
1 parent 11d829c commit 65dfda6
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
61 changes: 61 additions & 0 deletions pkgs/by-name/su/superhtml/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions pkgs/by-name/su/superhtml/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
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;
};
}

0 comments on commit 65dfda6

Please sign in to comment.