Files
Jörg Thalheim 68b5fdce2d treewide: zig packages: move dep linking to postConfigure
Commit e20232eab6 moved ZIG_GLOBAL_CACHE_DIR setup from an
addEnvHooks call into zigConfigurePhase. This broke all zig packages
that referenced $ZIG_GLOBAL_CACHE_DIR in postPatch or postUnpack,
since that variable is no longer set until configurePhase runs.

Move the symlink creation to postConfigure for all affected packages.
2026-02-08 20:04:22 +01:00

39 lines
795 B
Nix

{
lib,
callPackage,
fetchFromGitHub,
stdenv,
zig_0_15,
}:
let
zig = zig_0_15;
in
stdenv.mkDerivation (finalAttrs: {
pname = "superhtml";
version = "0.6.2";
src = fetchFromGitHub {
owner = "kristoff-it";
repo = "superhtml";
tag = "v${finalAttrs.version}";
hash = "sha256-z8Tc869VTLQSQgfz291i/XgK7STxpZA9cuBdqbVgIsY=";
};
nativeBuildInputs = [
zig
];
postConfigure = ''
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 ];
platforms = lib.platforms.unix;
};
})