diff options
author | Artturin <Artturin@artturin.com> | 2023-07-11 21:16:30 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-07-14 00:18:06 +0300 |
commit | 1c29673fcce3aecd0cb4f30058c266ea5480c8a3 (patch) | |
tree | 342dbdf9d35bb9fb4290aeb99fecde1762f0b097 /doc/languages-frameworks | |
parent | 9caab144be31e088bfd3468de2f26e5c08b0f4fa (diff) | |
download | nixlib-1c29673fcce3aecd0cb4f30058c266ea5480c8a3.tar nixlib-1c29673fcce3aecd0cb4f30058c266ea5480c8a3.tar.gz nixlib-1c29673fcce3aecd0cb4f30058c266ea5480c8a3.tar.bz2 nixlib-1c29673fcce3aecd0cb4f30058c266ea5480c8a3.tar.lz nixlib-1c29673fcce3aecd0cb4f30058c266ea5480c8a3.tar.xz nixlib-1c29673fcce3aecd0cb4f30058c266ea5480c8a3.tar.zst nixlib-1c29673fcce3aecd0cb4f30058c266ea5480c8a3.zip |
treewide: go-modules -> goModules
In 787af0f79f128cb21b113d2eb37e64d913f18aae I had to change ${go-modules} to $goModules to allow overrideAttrs to work; However, env vars cannot contain -, so i had to change go-modules too. This in turn broke nix-update because it uses the go-modules attr. Instead of making nix-update more complicated, make go-modules naming match cargoDeps. `fd --type f | xargs sd '\bgo-modules\b' 'goModules'` and revert change to pkgs/applications/misc/dstask/default.nix and pkgs/servers/http/dave/default.nix and pkgs/os-specific/darwin/plistwatch/default.nix release note added
Diffstat (limited to 'doc/languages-frameworks')
-rw-r--r-- | doc/languages-frameworks/go.section.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/languages-frameworks/go.section.md b/doc/languages-frameworks/go.section.md index cf1808414234..7fd38a7d21c5 100644 --- a/doc/languages-frameworks/go.section.md +++ b/doc/languages-frameworks/go.section.md @@ -20,7 +20,7 @@ In the following is an example expression using `buildGoModule`, the following a To obtain the actual hash, set `vendorHash = lib.fakeSha256;` and run the build ([more details here](#sec-source-hashes)). - `proxyVendor`: Fetches (go mod download) and proxies the vendor directory. This is useful if your code depends on c code and go mod tidy does not include the needed sources to build or if any dependency has case-insensitive conflicts which will produce platform-dependent `vendorHash` checksums. -- `modPostBuild`: Shell commands to run after the build of the go-modules executes `go mod vendor`, and before calculating fixed output derivation's `vendorHash` (or `vendorSha256`). Note that if you change this attribute, you need to update `vendorHash` (or `vendorSha256`) attribute. +- `modPostBuild`: Shell commands to run after the build of the goModules executes `go mod vendor`, and before calculating fixed output derivation's `vendorHash` (or `vendorSha256`). Note that if you change this attribute, you need to update `vendorHash` (or `vendorSha256`) attribute. ```nix pet = buildGoModule rec { @@ -115,7 +115,7 @@ done ## Attributes used by the builders {#ssec-go-common-attributes} -Many attributes [controlling the build phase](#variables-controlling-the-build-phase) are respected by both `buildGoModule` and `buildGoPackage`. Note that `buildGoModule` reads the following attributes also when building the `vendor/` go-modules fixed output derivation as well: +Many attributes [controlling the build phase](#variables-controlling-the-build-phase) are respected by both `buildGoModule` and `buildGoPackage`. Note that `buildGoModule` reads the following attributes also when building the `vendor/` goModules fixed output derivation as well: - [`sourceRoot`](#var-stdenv-sourceRoot) - [`prePatch`](#var-stdenv-prePatch) |