at master 38 lines 796 B view raw
1{ 2 lib, 3 callPackage, 4 fetchFromGitHub, 5 stdenv, 6 zig_0_15, 7}: 8let 9 zig = zig_0_15; 10in 11stdenv.mkDerivation (finalAttrs: { 12 pname = "superhtml"; 13 version = "0.6.0"; 14 15 src = fetchFromGitHub { 16 owner = "kristoff-it"; 17 repo = "superhtml"; 18 tag = "v${finalAttrs.version}"; 19 hash = "sha256-EWxnozmYTvkX7mn+pVel083Cte1uzvHaes1c7iXPMUg="; 20 }; 21 22 nativeBuildInputs = [ 23 zig.hook 24 ]; 25 26 postPatch = '' 27 ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p 28 ''; 29 30 meta = { 31 description = "HTML Language Server and Templating Language Library"; 32 homepage = "https://github.com/kristoff-it/superhtml"; 33 license = lib.licenses.mit; 34 mainProgram = "superhtml"; 35 maintainers = with lib.maintainers; [ petertriho ]; 36 platforms = lib.platforms.unix; 37 }; 38})