| 21 Jul 2024 |
| Adrien (Iglou.eu) left the room. | 18:13:05 |
| 22 Jul 2024 |
| Guilhem joined the room. | 08:30:16 |
Guilhem | Hello ! I'm trying to build a static website with hugo. A naive buildPhase = "hugo"; shows that it is trying to build some dependencies:
anr-hercules> go: git init --bare in /build/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/bf777e9c93e1a481b3d333886ea1bcc13630093f487c405b49f67fc14a20211b: exec: "git": executable file not found in $PATH
anr-hercules> go: git init --bare in /build/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/bf777e9c93e1a481b3d333886ea1bcc13630093f487c405b49f67fc14a20211b: exec: "git": executable file not found in $PATH
anr-hercules> Total in 5 ms
anr-hercules> Error: failed to load modules: failed to download modules: failed to execute 'go [mod download -modcacherw]': failed to execute binary "go" with args [mod download -modcacherw]: go: git init --bare in /build/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/bf777e9c93e1a481b3d333886ea1bcc13630093f487c405b49f67fc14a20211b: exec: "git": executable file not found in $PATH
Anyone has an example for this use case ? Or could I do something like giving go.mod & go.sum to buildGoModule ?
| 08:42:55 |
Paul Meyer (katexochen) | Guilhem: might this be helpful to you? https://jnsgr.uk/2024/01/building-a-blog-with-go-nix-hugo/#building-the-blog See the replacements done in postPatch | 08:57:05 |
Guilhem | looks like exactly what I need, thanks ! | 08:57:42 |
| bashfulrobot joined the room. | 17:17:00 |
| 23 Jul 2024 |
| kaya changed their profile picture. | 05:29:54 |
| Ezzobir Bezziou joined the room. | 08:20:44 |
| 24 Jul 2024 |
| Frédéric Christ left the room. | 19:35:47 |
| kaya changed their profile picture. | 21:51:35 |
| 25 Jul 2024 |
| bumperboat changed their display name from bumperboat (UTC+2) to bumperboat. | 12:47:25 |
| 26 Jul 2024 |
| lnlsn joined the room. | 13:49:20 |
| 27 Jul 2024 |
| aetaric joined the room. | 06:57:04 |
| aetaric set a profile picture. | 07:04:12 |
| bumperboat left the room. | 11:58:49 |
| 29 Jul 2024 |
| kaya changed their profile picture. | 07:47:18 |
| 2 Aug 2024 |
Marcus | Mic92: Have you seen https://github.com/nix-community/gomod2nix/pull/165 ? Would be kinda nice to get darwin support back 😅 | 09:05:30 |
| octvs left the room. | 09:08:48 |
Marcus | Thanks! | 09:12:17 |
| 6 Aug 2024 |
phanirithvij | Hi I have added a few packages I use fairly regularly, please review https://github.com/NixOS/nixpkgs/pull/332765, thank you | 18:27:57 |
| 7 Aug 2024 |
| kaya changed their profile picture. | 09:17:24 |
| 8 Aug 2024 |
| Saturn left the room. | 05:37:24 |
phanirithvij | Apologies, I missed the review-requests channel, I will post in the appropriate channel #review-requests:nixos.org from now on. | 14:06:53 |
| Alyssa Ross set a profile picture. | 18:48:44 |
| 10 Aug 2024 |
| Theo Paris joined the room. | 01:34:59 |
Theo Paris | I'm trying to package aws-lc in nixpkgs and I tested with nix build .#aws-lc and it works fine, but nix build .#pkgsStatic.aws-lc causes errors with go run. I am using buildGoModule, and I tried CGO_ENABLED=0 as well as ldflags = ["-extldflags=-static"] and it didn't fix it.
> FAILED: crypto_test_data.cc /build/source/build/crypto_test_data.cc
> cd /build/source && /nix/store/83ffvqm5g4ig8jmmgjicri31iyv27bwm-go-1.22.5/bin/go run util/embed_test_data.go -file-list /build/source/build/embed_test_data_args.txt > /build/source/build/crypto_test_data.cc
> fork/exec /build/go-build1317377595/b001/exe/embed_test_data: no such file or directory
> [95/558] Generating err_data.c
> FAILED: crypto/err_data.c /build/source/build/crypto/err_data.c
> cd /build/source/crypto/err && /nix/store/83ffvqm5g4ig8jmmgjicri31iyv27bwm-go-1.22.5/bin/go run err_data_generate.go > /build/source/build/crypto/err_data.c
> fork/exec /build/go-build1857997573/b001/exe/err_data_generate: no such file or directory
| 01:36:19 |
Theo Paris | * I'm trying to package aws-lc in nixpkgs and I tested with nix build .#aws-lc and it works fine, but nix build .#pkgsStatic.aws-lc causes errors with go run. I am using buildGoModule, and I tried CGO_ENABLED=0 as well as ldflags = ["-extldflags=-static"] and it didn't fix it. Any ideas?
> FAILED: crypto_test_data.cc /build/source/build/crypto_test_data.cc
> cd /build/source && /nix/store/83ffvqm5g4ig8jmmgjicri31iyv27bwm-go-1.22.5/bin/go run util/embed_test_data.go -file-list /build/source/build/embed_test_data_args.txt > /build/source/build/crypto_test_data.cc
> fork/exec /build/go-build1317377595/b001/exe/embed_test_data: no such file or directory
> [95/558] Generating err_data.c
> FAILED: crypto/err_data.c /build/source/build/crypto/err_data.c
> cd /build/source/crypto/err && /nix/store/83ffvqm5g4ig8jmmgjicri31iyv27bwm-go-1.22.5/bin/go run err_data_generate.go > /build/source/build/crypto/err_data.c
> fork/exec /build/go-build1857997573/b001/exe/err_data_generate: no such file or directory
| 01:36:54 |
Theo Paris | Hmm, the same issue happens with the existing boringssl package | 01:43:30 |
| @atalii:matrix.org left the room. | 20:10:56 |
| 12 Aug 2024 |
| jgero left the room. | 06:13:38 |