15 Sep 2025 |
raitobezarius | If you do that, you won't pull any relevant submodules, will you? | 16:21:52 |
laurents | it's a bit convoluted:
- the app itself is a rails app, and I am packaging that with a flake. the app uses git submodules, so I managed to make it work with
self.submodules = true in the flake
- I have a separate flake to configure a server which uses that app. So I use flake1 as an input here. and this is where I get stuck
| 16:22:10 |
K900 | Just use fetchFromGitHub or similar with fetchSubmodules = true | 16:22:49 |
K900 | Instead of another flake | 16:22:52 |
Qyriad | yeah recentl | 16:23:42 |
Qyriad | * yeah exactly | 16:23:48 |
raitobezarius | laurents: if you want, I can help you take a look at how to get rid of self submodules and look at your packaging; otherwise, we can work together how to fix flake-self-attrs | 16:24:39 |
laurents | my problem is that the app (https://github.com/mysociety/alaveteli/ for context) requires a fairly complex localization to work, it's a "theme" which customises a number of things, including by overriding some of the ruby code. so I need to inject stuff in the upstream, I can't just pull the built package | 16:24:46 |
raitobezarius | Do you have pointers to the various repositories with flake.nix and so on? | 16:25:16 |
raitobezarius | With a reproducer recipe so we can test on our end | 16:25:22 |
laurents | ok, let me push my code and I'll come back here in a moment | 16:26:52 |
emily | aloisw: will you be up for rebasing https://github.com/NixOS/nixpkgs/pull/434186 after the toml11 bump? | 16:26:55 |
aloisw | I am aware of the static Darwin breakage but don't know what causes it. The Darwin stuff I did for the prelinking change was pretty much strictly about not breaking dynamic linkage. | 16:44:33 |
aloisw | Generally yes, but I can't guarantee a specific turnaround time (probably less than 1 day though). | 16:45:48 |
aloisw | (Not to be understood in the "I will be slow" sense, but more like "please don't consider me paged in the middle of the night".) | 16:49:17 |
laurents | raitobezarius Ok, I think it's showable-ish. My code is at https://gitlab.com/madada-team/dada-core/-/tree/add-theme-flake?ref_type=heads. Running a nix develop --no-pure-eval (no pure eval because I use devenv) should show you the bug. | 17:02:19 |
raitobezarius | thx | 17:02:37 |
raitobezarius | laurents: it uses a local path for alaveteli | 17:33:47 |
raitobezarius | do you have a git ref or something? | 17:33:53 |
raitobezarius | (sorry for the delay, my OS scheduler decided to look now) | 17:34:04 |
laurents | sorry, I'm super confused, I was sure I had removed my local paths. is https://github.com/laurentS/alaveteli/blob/nix-devenv what you're after? (that's the nix stuff, but also the entire codebase for alaveteli) | 17:51:47 |
raitobezarius | i'm dumb | 17:52:02 |
raitobezarius | i was on main | 17:52:04 |
raitobezarius | give me a sec | 17:52:14 |
raitobezarius | (actually, give minutes) | 17:53:36 |
raitobezarius | * (actually, give me minutes) | 17:53:40 |
raitobezarius | laurents: the mistake in the lix code seems trivial at least | 18:31:05 |
raitobezarius | submodules is supported only for git:// | 18:31:12 |
raitobezarius | not for github:// | 18:31:15 |
raitobezarius | which… kinda makes sense? | 18:31:19 |