Nix + Go | 234 Members | |
| Go packaging for and with Nixpkgs. | Be excellent to each other. | 48 Servers |
| Sender | Message | Time |
|---|---|---|
| 6 Oct 2024 | ||
| Awesome yep it built. So this package also needs to generate some UI stuff via NodeJS it seems. What would be the best way to go about that? Just adding node into the build inputs and running the commands in a hook or is there a better way? | 15:55:08 | |
| i'd at least split the nodejs stuff out into a separate derivation then link/copy them in | 16:03:17 | |
unless you want to use all | 16:03:22 | |
unless you want to use make all | 16:03:25 | |
In reply to @diamondburned:matrix.orgYeah thought about that as well | 16:05:10 | |
| 8 Oct 2024 | ||
| 19:36:05 | ||
| 9 Oct 2024 | ||
| Hi,
This file indeed uses a | 13:04:28 | |
I checked and the manifest.json is present in the root of the archive. Why can't it be found then ?Is the nix go helper doing something weird here ? | 13:05:07 | |
| Gaétan Lepage: Has nothing to do with nix, check https://github.com/mikew/nvrh/blob/main/script/build | 13:08:39 | |
| * Gaétan Lepage: Has nothing to do with nix, check https://github.com/mikew/nvrh/blob/main/script/build#L14. You just need to copy the file from . to ./src | 13:09:19 | |
| Indeed thanks a lot ! | 13:10:31 | |
| 10 Oct 2024 | ||
| 13:24:34 | ||
| 11 Oct 2024 | ||
| 05:34:29 | ||
| 16 Oct 2024 | ||
| 14:02:41 | ||
| 17 Oct 2024 | ||
| 06:51:17 | ||
| 06:51:46 | ||
| 12:22:31 | ||
| 20 Oct 2024 | ||
| 22:56:48 | ||
| anyone had any success with gomod2nix please? I tried posting here: https://discourse.nixos.org/t/gomod2nix-cannot-find-module-providing-package/54558 | 22:57:38 | |
| 21 Oct 2024 | ||
In reply to @galaxyyy:matrix.orgSaturn: I believe this means that you DO have a vendor/modules.txt file. e.g. The go.mod and modules.txt are out of sync with each other. Maybe "rm -rf vendor" will fix it? Or "go mod vendor" | 17:33:36 | |
In reply to @daveseddon:matrix.orgActually seems I needed to just set subPackages = ["."] iirc | 17:34:36 | |
| That error ended up not being the one that caused the build to fail and those were more so just warnings | 17:35:03 | |
| ok. great! Is https://github.com/hrfee/jfa-go/blob/main/Makefile#L35-L42 now up to date with a complete working solution? | 17:36:08 | |
| Yeah for the most part the package works aside from a few small bugs but I'm not sure if those are something to do with my packaging or upstream | 17:37:11 | |
| I would share the derivation file but it looks like I haven't pushed it yet and I'm currently not home | 17:38:14 | |
| Thanks again. - I'm just trying to understand the "best" way to build go packages with nix. I guess once this is pushed I will try to copy it and make it work for my little project.... Really hoping to use DockerTools to build the docker container with the golangs binary inside it | 17:41:04 | |
| This project in particular seems to do things a bit different especially when it comes to the UI part | 17:41:57 | |
| I'll be curious to see how it compares to the wiki: https://nixos.wiki/wiki/Go | 17:42:10 | |
| However I can share a basic Telegram bot I have which is built with Nix and I also build a Docker image with Nix containing the package if your interested in looking at that | 17:42:44 | |
| oh that would be awesome! | 17:45:25 | |