!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

416 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.139 Servers

Load older messages


SenderMessageTime
15 Sep 2025
@qyriad:katesiria.orgQyriad hmm 16:15:02
@raitobezarius:matrix.orgraitobezarius I remember aloisw knew things about this, but I'm so out of my depth on this topic 16:17:23
@laurents:fsfe.orglaurents Hello! I am packaging a service for nixos, and I just hit https://git.lix.systems/lix-project/lix/issues/970 which completely prevents me from moving forward. (short of spending weeks trying to convince the upstream team to get rid of submodules) So I thought I'd try to fix that bug in lix. I write code for a living, but not C/C++, and I'm far from being a nix guru. Any thoughts on how unconscious it is of me to want to tackle it? 16:17:56
@qyriad:katesiria.orgQyriad if no one has figured it out by Friday make an issue and assign it to usyo 16:18:05
@qyriad:katesiria.orgQyriad
In reply to @laurents:fsfe.org
Hello! I am packaging a service for nixos, and I just hit https://git.lix.systems/lix-project/lix/issues/970 which completely prevents me from moving forward. (short of spending weeks trying to convince the upstream team to get rid of submodules) So I thought I'd try to fix that bug in lix. I write code for a living, but not C/C++, and I'm far from being a nix guru. Any thoughts on how unconscious it is of me to want to tackle it?
wait, why do you need self submodules for an upstream repo?
16:19:14
@raitobezarius:matrix.orgraitobezariusI suppose it's an upstream repo that contains a flake.nix which use self submodules implicitly16:20:14
@qyriad:katesiria.orgQyriad I'd probably see if you can just consume the upstream repo with flake = false 16:21:29
@raitobezarius:matrix.orgraitobezariusIf you do that, you won't pull any relevant submodules, will you?16:21:52
@laurents:fsfe.orglaurents

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:0upti.meK900 Just use fetchFromGitHub or similar with fetchSubmodules = true 16:22:49
@k900:0upti.meK900Instead of another flake16:22:52
@qyriad:katesiria.orgQyriad yeah recentl 16:23:42
@qyriad:katesiria.orgQyriad * yeah exactly 16:23:48
@raitobezarius:matrix.orgraitobezarius 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:fsfe.orglaurents 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:matrix.orgraitobezariusDo you have pointers to the various repositories with flake.nix and so on?16:25:16
@raitobezarius:matrix.orgraitobezariusWith a reproducer recipe so we can test on our end16:25:22
@laurents:fsfe.orglaurentsok, let me push my code and I'll come back here in a moment16:26:52
@emilazy:matrix.orgemily aloisw: will you be up for rebasing https://github.com/NixOS/nixpkgs/pull/434186 after the toml11 bump? 16:26:55
@aloisw:julia0815.dealoisw 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:julia0815.dealoisw Generally yes, but I can't guarantee a specific turnaround time (probably less than 1 day though). 16:45:48
@aloisw:julia0815.dealoisw (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:fsfe.orglaurents 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:matrix.orgraitobezariusthx17:02:37
@raitobezarius:matrix.orgraitobezarius laurents: it uses a local path for alaveteli 17:33:47
@raitobezarius:matrix.orgraitobezariusdo you have a git ref or something?17:33:53
@raitobezarius:matrix.orgraitobezarius(sorry for the delay, my OS scheduler decided to look now)17:34:04
@laurents:fsfe.orglaurents 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:matrix.orgraitobezariusi'm dumb17:52:02
@raitobezarius:matrix.orgraitobezariusi was on main17:52:04

Show newer messages


Back to Room ListRoom Version: 10