diff options
author | figsoda <figsoda@pm.me> | 2023-08-09 20:43:09 -0400 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-08-10 02:37:53 +0000 |
commit | 17d404ee80589efa8473cf1b50d031487329419a (patch) | |
tree | 17cfdfa6e5dab038ecb38d7fea9b46b9b56f213c /doc | |
parent | a52cccf791cb424704a483a19d302ad032b5575b (diff) |
zig.hook: rename from zigHook
This makes using specific versions of zig easier (without overrides)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/hooks/zig.section.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/hooks/zig.section.md b/doc/hooks/zig.section.md index 78b8262f4749d..d85bcfd5c7574 100644 --- a/doc/hooks/zig.section.md +++ b/doc/hooks/zig.section.md @@ -1,22 +1,22 @@ -# zigHook {#zighook} +# zig.hook {#zig-hook} [Zig](https://ziglang.org/) is a general-purpose programming language and toolchain for maintaining robust, optimal and reusable software. -In Nixpkgs, `zigHook` overrides the default build, check and install phases. +In Nixpkgs, `zig.hook` overrides the default build, check and install phases. ## Example code snippet {#example-code-snippet} ```nix { lib , stdenv -, zigHook +, zig }: stdenv.mkDerivation { # . . . nativeBuildInputs = [ - zigHook + zig.hook ]; zigBuildFlags = [ "-Dman-pages=true" ]; @@ -27,7 +27,7 @@ stdenv.mkDerivation { } ``` -## Variables controlling zigHook {#variables-controlling-zighook} +## Variables controlling zig.hook {#variables-controlling-zig-hook} ### `dontUseZigBuild` {#dontUseZigBuild} @@ -53,7 +53,7 @@ Disables using `zigInstallPhase`. Controls the flags passed to the install phase. -### Variables honored by zigHook {#variablesHonoredByZigHook} +### Variables honored by zig.hook {#variables-honored-by-zig-hook} - `prefixKey` - `dontAddPrefix` |