!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

221 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.46 Servers

Load older messages


SenderMessageTime
9 Jan 2025
@diamondburned:matrix.orgdiamond (it/its) so based on https://devenv.sh/outputs/#defining-outputs, devenv build's functionality is merely to build the packages and print out the outputs to stdout. if you want to make it also put that to a build artifact directory (why?), you might want to use a task to wrap it 00:51:18
@diamondburned:matrix.orgdiamond (it/its)
In reply to@vendion:matrix.org
Yeah, that is exactly what I was trying to do. Okay I'll have to rethink my approach as I was wanting to be able to use a CI pipeline to build the artifacts and use them as downloadable releases. The end users are not using Nix so having to work out deployment strategy
you can put the path to a variable then give that to the artifact upload command
00:51:44
@diamondburned:matrix.orgdiamond (it/its)are you using GHA?00:51:48
@diamondburned:matrix.orgdiamond (it/its) consider something like echo "build_output=$(devenv build [optional name])" >> $GITHUB_OUTPUT then give build_output to the upload-artifacts action 00:52:25
@vendion:matrix.orgvendionNo, using SourceHut and their build process 00:52:31
@diamondburned:matrix.orgdiamond (it/its) consider something like echo "build_output=$(devenv build [optional name])" >> $GITHUB_OUTPUT then give build_output to the upload-artifacts action using gha variables 00:52:32
@diamondburned:matrix.orgdiamond (it/its)hmm00:52:36
@diamondburned:matrix.orgdiamond (it/its)then you want an extra step to symlink the output path to a known constant path maybe00:53:37
@diamondburned:matrix.orgdiamond (it/its) something like ln -s $(devenv build [package]) /tmp/build-output 00:53:50
@diamondburned:matrix.orgdiamond (it/its) or even cp -r if you hate that for some reason 00:53:54
@vendion:matrix.orgvendion
In reply to @diamondburned:matrix.org
something like ln -s $(devenv build [package]) /tmp/build-output
Yeah, I was just thinking that
00:54:13
@diamondburned:matrix.orgdiamond (it/its) then you should be able to give it - /tmp/build-output/bin/$name 00:54:14
@vendion:matrix.orgvendionThanks for clarifying that, I think that approach should work for my use case. 00:55:25
@diamondburned:matrix.orgdiamond (it/its)yeah np!00:55:30
21 Jan 2025
@kaya:catnip.ee@kaya:catnip.ee changed their profile picture.00:26:13
@joelmatrixaccount:matrix.orgJoel joined the room.12:11:12
25 Jan 2025
@lnlsn:matrix.orglnlsn changed their profile picture.20:16:08
27 Jan 2025
@antifuchs:asf.computerantifuchs removed their profile picture.20:02:30
@antifuchs:asf.computerantifuchs so I have a derivation here where I'd like to disable building with CGO. Previously, I'd do CGO_ENABLED = 0, but now that warns: "specify CGO_ENABLED with env.CGO_ENABLED instead."; so now I'm setting env.CGO_ENABLED = 0; and am getting this error: "error: The env attribute set cannot contain any attributes passed to derivation. The following attributes are overlapping:
- CGO_ENABLED: in env: 0; in derivation arguments: 1"
20:04:30
@antifuchs:asf.computerantifuchshere's the build in CI where that happens https://github.com/boinkor-net/hoopsnake/actions/runs/12997213156/job/36247707654?pr=80#step:5:323 and here's the PR: https://github.com/boinkor-net/hoopsnake/pull/80/files20:04:52
@antifuchs:asf.computerantifuchs I'm not sure what to take away from that message, or how to fix this. I did try a lib.mkForce, which alters the error message to indicate that the value has a greater priority, but that's it 20:05:28
@antifuchs:asf.computerantifuchsoh grump, I had to update nixpkgs in the flake's dev lockfile.20:11:41
@antifuchs:asf.computerantifuchswonder how that migration should go for external code, then: Do we just tolerate the warning until the derivation no longer sets that? Or do we flip over to get rid of the warning on unstable and break everyone using stable releases?20:12:34
@antifuchs:asf.computerantifuchs* wonder how that migration should go for external code, then: Do we just tolerate the warning until the latest release's buildGoModule builder no longer sets that? Or do we flip over to get rid of the warning on unstable and break everyone using stable releases?20:15:26
30 Jan 2025
@ofalvai:matrix.orgofalvai joined the room.19:45:23
31 Jan 2025
@raboof:matrix.org@raboof:matrix.org changed their display name from raboof to raboof@FOSDEM.23:54:12
2 Feb 2025
@k900:0upti.meK900 ⚡️I've got a Go thing here that's failing to link with10:25:19
@k900:0upti.meK900 ⚡️
/nix/store/a1cr17kwgakznfw4pp8paw8yv189ikk5-binutils-2.43.1/bin/ld: cannot find -lresolv: No such file or directory
/nix/store/a1cr17kwgakznfw4pp8paw8yv189ikk5-binutils-2.43.1/bin/ld: cannot find -lpthread: No such file or directory
/nix/store/a1cr17kwgakznfw4pp8paw8yv189ikk5-binutils-2.43.1/bin/ld: cannot find -ldl: No such file or directory
/nix/store/a1cr17kwgakznfw4pp8paw8yv189ikk5-binutils-2.43.1/bin/ld: cannot find -lc: No such file or directory
10:25:21
@k900:0upti.meK900 ⚡️Tried giving it glibc and it still doesn't work10:25:31
@katexochen:matrix.orgPaul Meyer (katexochen) @k900:0upti.me: no instant idea, can you share code for this? 10:43:34

Show newer messages


Back to Room ListRoom Version: 9