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 23, 2024
1 parent de0b107 commit 32da32c
Show file tree
Hide file tree
Showing 2 changed files with 95 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.

34 changes: 34 additions & 0 deletions pkgs/by-name/su/superhtml/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
lib,
callPackage,
fetchFromGitHub,
stdenv,
zig,
}:
stdenv.mkDerivation rec {
pname = "superhtml";
version = "0.5.0";

src = fetchFromGitHub {
owner = "kristoff-it";
repo = "superhtml";
rev = "v${version}";
hash = "sha256-E4IVDYps6K+SdemkfwtTjOE+Rdu8m4Itfd3Kv0XO7qk=";
};

nativeBuildInputs = [
zig.hook
];

postPatch = ''
ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
'';

meta = {
description = "HTML Language Server and Templating Language Library";
homepage = "https://github.com/kristoff-it/superhtml";
license = lib.licenses.mit;
mainProgram = "superhtml";
maintainers = with lib.maintainers; [ petertriho ];
};
}

0 comments on commit 32da32c

Please sign in to comment.