Nix + Go | 216 Members | |
| Go packaging for and with Nixpkgs. | Be excellent to each other. | 46 Servers |
| Sender | Message | Time |
|---|---|---|
| 24 Feb 2025 | ||
| Hi | 10:59:40 | |
| Sorry for the inconvenience. But I have a question, I have an app that is used in production. This one would have to migrate to nixos. But it is only built in Go 1.24 while we are in 24.11. What would be the best approach? Can we backport Go 1.24 or should another way be used? | 11:01:31 | |
| Best Regards | 11:01:34 | |
| Is related to this PR : https://github.com/NixOS/nixpkgs/pull/384733 | 11:10:05 | |
| 12:22:38 | ||
you can add a new flake input just for nixpkgs/nixos-unstable as like nixpkgs-unstable then do | 19:32:32 | |
| 22:36:36 | ||
| 25 Feb 2025 | ||
| 08:25:44 | ||
| is there a way to make a non-fixed-output derivation with buildGoModule?
}; | 08:26:16 | |
| * is there a way to make a non-fixed-output derivation with buildGoModule? I have a package with dependencies that need to be patched to point to nix store but this still results in illegal path references in fixed-output derivation | 08:26:40 | |
| * is there a way to make a non-fixed-output derivation with buildGoModule?
but this still results in illegal path references in fixed-output derivation | 08:26:54 | |
| 12:01:57 | ||
| 12:02:04 | ||
| 12:02:14 | ||
Why would go install hang when trying to rebuild netbird from nixpkgs? nom-build -A netbird https://github.com/r-ryantm/nixpkgs/archive/267f63cb9b4faf3ef8fd5be997f1864c29795b2b.tar.gzI've made my own local version to add set -x and it just hangs on the go install step doing nothing | 12:24:20 | |
| ohhh... it just took forever, I'm on 22nd minute and it's building management now | 12:33:34 | |
| still running it outside nix build finishes in seconds | 12:43:02 | |
| 26 Feb 2025 | ||
| a hack would be to make a derivation that copies all of the vendor derivation's files out and then do the transformation | 06:54:10 | |
| though I'm like 90% sure Nix has a hook to patch library paths inside programs that specifically do dynimports but I could be wrong? | 06:54:43 | |
| iirc `autoPatchelfHook` does what you want I think??? | 06:54:50 | |
| 12:44:49 | ||
| 1 Mar 2025 | ||
| 12:44:17 | ||
| Can someone tell me if I did anything wrong on the Go side of https://github.com/NixOS/nixpkgs/pull/386064 | 12:51:52 | |
| 3 Mar 2025 | ||
| lgtm | 14:25:19 | |
| Thanks, I got some help from Puck on that :) | 14:26:22 | |
| Puck? | 14:28:54 | |
| @puckipedia | 14:35:27 | |
| One of the Lix maintainers | 14:35:45 | |
| And bearer of cursed Go knowledge m | 14:35:55 | |
| * And bearer of cursed Go knowledge | 14:36:06 | |