| 20 Nov 2024 |
| Inayet removed their profile picture. | 00:59:06 |
@phaitonican:matrix.org | Redacted or Malformed Event | 21:59:49 |
| 21 Nov 2024 |
@phaitonican:matrix.org | Redacted or Malformed Event | 01:56:44 |
@phaitonican:matrix.org | Redacted or Malformed Event | 02:00:10 |
| 22 Nov 2024 |
| Jake Hillion joined the room. | 00:47:02 |
Jake Hillion | 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 #!/bin/bash in the script with #!/usr/bin/env bash, running the script from my flake directory (./meson-scripts/get_clang_ver /nix/store/hnfkms9dykvh61nwdqydzmbgzzr5lwy0-clang-wrapper-18.1.8/bin/clang, works as intended), doing the same in nix develop -i which also works.
I ran nix build --keep-failed and got note: keeping build directory '/tmp/nix-build-scx.drv-4/build'. I cd'd to /tmp/nix-build-scx.drv-4/ (dropping the final /build, hoping that's where the script chroots) and ran ./build/source/meson-scripts/get_clang_ver /nix/store/hnfkms9dykvh61nwdqydzmbgzzr5lwy0-clang-wrapper-18.1.8/bin/clang in nix develop -i. Also worked. I'm a bit stumped how else to debug this, what else can I do when the problem isn't reproducible in an environment ignoring nix develop?
| 00:52:30 |
Jake Hillion | WIP diff if it's helpful: https://github.com/sched-ext/scx/commit/43ef529001d059a799dccbbd2b7a1c4541da0c96 | 01:02:24 |
| rager set a profile picture. | 07:47:36 |
| rager changed their profile picture. | 07:50:26 |
| 👉@crystallinefire:chat.solarpunk.moe changed their profile picture. | 20:25:37 |
| 24 Nov 2024 |
| @nyncral:matrix.org joined the room. | 17:16:51 |
| 25 Nov 2024 |
| Sefodopo joined the room. | 07:13:16 |
| @nullcube:matrix.org joined the room. | 09:54:40 |
| @jfquesada:matrix.org changed their display name from Jose Quesada to ice9. | 18:38:05 |
| @jfquesada:matrix.org left the room. | 19:06:10 |
| 27 Nov 2024 |
| @sky1e:mildlyfunctional.gay left the room. | 03:14:45 |
| @susscrofa:matrix.org left the room. | 17:58:30 |
| jopejoe1 (4094@epvpn) changed their display name from jopejoe1 to jopejoe1 [4094]. | 18:18:57 |
| 28 Nov 2024 |
Magnus | 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 |
elikoga | You could pull the private repos in as a git Repo using ssh and a private key available to the user | 13:13:27 |
Magnus | How? I'm failing to push any kind of git setup into the build environment of nix build .. | 13:17:01 |
elikoga | This is a normal nix feature though someone should write that it does that in builtins.fetchGit | 13:17:12 |
elikoga | I'm assuming the go repos are git repos? | 13:17:33 |
elikoga | You can add them to the flake inputs too, and set isFlake =false Or something like that | 13:18:01 |
Magnus | I know builtins.fetchGet can do it, but go build isn't using it for obvious reasons. | 13:18:25 |
Magnus | It sounds like you are proposing something very custom made, rather than using buildGoModule though, elikoga . | 13:19:24 |
elikoga | Can you make go build fetch from local paths? | 13:19:27 |
Magnus | You mean if I can go build in an interactive shell, yes. | 13:20:06 |
Magnus | * You mean if I can go build in an interactive shell, yes I can. | 13:20:15 |
elikoga | buildGoModule is very custom made though? | 13:20:33 |