Nix Flakes | 895 Members | |
| 180 Servers |
| Sender | Message | Time |
|---|---|---|
| 18 Nov 2024 | ||
| I want to use git repos with Nix Flakes in them directly as if they were package dependencies in another Flake? I can't seem to find good documentation for this. Is it even a thing? The purpose is to improve, but not impose perfection or slowdown, on developers or researchers as they Nix-ify their projects. The application is that I have a root project that needs to be put into a flake, which in turn has a number of other projects which are not Nix packages but could feasibly add a Nix Flake. The end goal is to be able to set up and package a project such that the end result is as easy to replicate for others as described here: https://obscuratur-in-arena.readthedocs.io/en/latest/A-good-way-to-set-up-your-python-project-using-Nix-Direnv-and-Poetry.html | 17:58:20 | |
| * I want to use git repos with Nix Flakes in them directly as if they were package dependencies in another Flake. I can't seem to find good documentation for this. Is it even a thing? The purpose is to improve, but not impose perfection or slowdown, on developers or researchers as they Nix-ify their projects. The application is that I have a root project that needs to be put into a flake, which in turn has a number of other projects which are not Nix packages but could feasibly add a Nix Flake. The end goal is to be able to set up and package a project such that the end result is as easy to replicate for others as described here: https://obscuratur-in-arena.readthedocs.io/en/latest/A-good-way-to-set-up-your-python-project-using-Nix-Direnv-and-Poetry.html | 18:04:37 | |
| 20 Nov 2024 | ||
| 00:59:06 | ||
| Redacted or Malformed Event | 21:59:49 | |
| 21 Nov 2024 | ||
| Redacted or Malformed Event | 01:56:44 | |
| Redacted or Malformed Event | 02:00:10 | |
| 22 Nov 2024 | ||
| 00:47:02 | ||
| 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 | |