Nix Flakes | 895 Members | |
| 180 Servers |
| Sender | Message | Time |
|---|---|---|
| 22 Nov 2024 | ||
| hey all, I'm hoping this is the right place to ask about packaging problems with flakes. I'm trying to add a flake to a project that builds with meson (poor me) and having some trouble with run_command. The error I'm ending up with is: meson.build:51:16: ERROR: Could not execute command `/build/source/meson-scripts/get_clang_ver /nix/store/hnfkms9dykvh61nwdqydzmbgzzr5lwy0-clang-wrapper-18.1.8/bin/clang'. I did the usual things: replacing I ran | 00:52:30 | |
| WIP diff if it's helpful: https://github.com/sched-ext/scx/commit/43ef529001d059a799dccbbd2b7a1c4541da0c96 | 01:02:24 | |
| 07:47:36 | ||
| 07:50:26 | ||
| 20:25:37 | ||
| 24 Nov 2024 | ||
| 17:16:51 | ||
| 25 Nov 2024 | ||
| 07:13:16 | ||
| 09:54:40 | ||
| 18:38:05 | ||
| 19:06:10 | ||
| 27 Nov 2024 | ||
| 03:14:45 | ||
| 17:58:30 | ||
| 18:18:57 | ||
| 28 Nov 2024 | ||
| Is it impossible to write a flake to build a go project that has dependencies in private repos, or am I failing to find information on how to do it? | 13:12:42 | |
| You could pull the private repos in as a git Repo using ssh and a private key available to the user | 13:13:27 | |
How? I'm failing to push any kind of git setup into the build environment of nix build .. | 13:17:01 | |
| This is a normal nix feature though someone should write that it does that in builtins.fetchGit | 13:17:12 | |
| I'm assuming the go repos are git repos? | 13:17:33 | |
| You can add them to the flake inputs too, and set isFlake =false Or something like that | 13:18:01 | |
I know builtins.fetchGet can do it, but go build isn't using it for obvious reasons. | 13:18:25 | |
It sounds like you are proposing something very custom made, rather than using buildGoModule though, elikoga . | 13:19:24 | |
| Can you make go build fetch from local paths? | 13:19:27 | |
You mean if I can go build in an interactive shell, yes. | 13:20:06 | |
* You mean if I can go build in an interactive shell, yes I can. | 13:20:15 | |
| buildGoModule is very custom made though? | 13:20:33 | |
If you by "custom made" mean, made for general consumption and therefore available in nixpkgs, yes then it's custom made. | 13:21:45 | |
In reply to @elikoga:matrix.orgyou can have replace directives in your go.mod which can iirc point to local paths | 13:22:24 | |
| And then template the local Paths using the nix fetched git repos? | 13:23:11 | |
flyx: ah, so then I'd have to rewrite go.mod on during the build? | 13:23:15 | |
* flyx: ah, so then I'd have to modify go.mod on during the build? | 13:23:44 | |