Skip to content

Commit

Permalink
superhtml: init at 0.5.0 (NixOS#343878)
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank authored Sep 29, 2024
2 parents 61e26f8 + 65dfda6 commit cde20f0
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16331,6 +16331,12 @@
githubId = 29493551;
name = "Josh Peters";
};
petertriho = {
email = "[email protected]";
github = "petertriho";
githubId = 7420227;
name = "Peter Tri Ho";
};
peterwilli = {
email = "[email protected]";
github = "peterwilli";
Expand Down
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 cde20f0

Please sign in to comment.