!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

236 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.49 Servers

Load older messages


SenderMessageTime
30 Jan 2023
@qbit:tapenet.org@qbit:tapenet.orghihi14:21:13
31 Jan 2023
@adam:valkor.net@adam:valkor.net joined the room.15:22:29
@adam:valkor.net@adam:valkor.net Is there a way to just add the gomod support to a derivation? Kitty is already a buildPythonApplication derivation, but they've added a go build dependency in the latest release 15:27:46
@adam:valkor.net@adam:valkor.netOr is there another way for me to build a derivation combining the two different language envs?15:28:23
@qbit:tapenet.org@qbit:tapenet.org you could do something like in pkgs/misc/logging/beats/7.x.nix 15:29:57
@qbit:tapenet.org@qbit:tapenet.orgis the go source in the kitty repo? 15:30:30
@qbit:tapenet.org@qbit:tapenet.orgoh, sorry - i though tbeats was building some other non-go package, looks like they are all go15:30:57
@adam:valkor.net@adam:valkor.netlooks like yes https://github.com/kovidgoyal/kitty/tree/master/tools/cli15:31:21
@qbit:tapenet.org@qbit:tapenet.orgmaybe just have the go 1.19 compiler available and use the existing derivation ? 15:33:37
@qbit:tapenet.org@qbit:tapenet.orgit's not immediately clear where it's actually building the go stuff (nothing obvious in the makefile)15:34:10
@adam:valkor.net@adam:valkor.netthe modules aren't vendored though, so it looks like it's failing on pulling them15:34:13
@qbit:tapenet.org@qbit:tapenet.orgohhh, gross15:34:25
@qbit:tapenet.org@qbit:tapenet.org maybe have a let theSource = fetchFromGitHub {} and use that in two different derivations? 15:35:55
@qbit:tapenet.org@qbit:tapenet.org not sure how you'd combine it back into one though.. maybe makeWrapper 15:36:13
@adam:valkor.net@adam:valkor.netugh. https://github.com/kovidgoyal/kitty/blob/5a997a5f7a3f28dec1f9675cd434ae6d2c92837a/setup.py#L89915:38:21
@qbit:tapenet.org@qbit:tapenet.orggross15:39:05
* @qbit:tapenet.org@qbit:tapenet.org has flashbacks of node-gyp15:39:16
@sandro:supersandro.deSandro 🐧you probably want to build that in an extra derivation and copy over to the python stuff17:14:46
@adam:valkor.net@adam:valkor.netYeah, that's what I'm working on now18:20:04
@adam:valkor.net@adam:valkor.netok, here's another question. How can I deal with the improper module name in the go.mod? https://github.com/kovidgoyal/kitty/blob/5a997a5f7a3f28dec1f9675cd434ae6d2c92837a/go.mod#L120:39:15
@adam:valkor.net@adam:valkor.netPatch the entire project? Or....?20:39:31
@qbit:tapenet.org@qbit:tapenet.orguuugh20:41:11
@adam:valkor.net@adam:valkor.netyeah, i will report it upstream as well20:41:37
@qbit:tapenet.org@qbit:tapenet.orgmaybe you could do the vendor dance initially (to get the vendor dir), then disable go modules and do the build..20:41:55
@qbit:tapenet.org@qbit:tapenet.orgmaybe.. i am not sure our buildGo stuff will permit that20:42:06
@qbit:tapenet.org@qbit:tapenet.orgprobably be easier to patch all the go files though20:42:57
@adam:valkor.net@adam:valkor.netI don't think that's actually my problem. Sigh.20:55:56
@adam:valkor.net@adam:valkor.netpython is being used to generate go code20:56:23
@adam:valkor.net@adam:valkor.netThough this worked well: https://github.com/sirkon/go-imports-rename :)20:57:20
@qbit:tapenet.org@qbit:tapenet.orgyay, the sourcehut GOPRIVATE stuff is not gonna happen21:36:58

Show newer messages


Back to Room ListRoom Version: 9