Nix Flakes | 881 Members | |
| 175 Servers |
| Sender | Message | Time |
|---|---|---|
| 12 Jan 2024 | ||
| You can maintain a fork of nixpkgs and use that as a flake input | 19:05:22 | |
| I’m not sure if there’s a way to say “take the latest nixpkgs on some channel, apply a patch, and use that as a flake input” | 19:05:55 | |
In reply to @samasaur:matrix.orgI was hoping not to do that | 19:07:10 | |
| just to be sure: overlays do not solve your problem? | 22:02:22 | |
| 13 Jan 2024 | ||
| The Nix developers are still trying to figure out how to support this cleanly. https://github.com/NixOS/nix/issues/3920 | 03:10:02 | |
In reply to @mewp:nurupo.plno, I need to patch nixpkgs itself, not the packages it contains | 12:16:25 | |
In reply to @aidalgol:matrix.orgthis is pretty cool | 12:17:25 | |
| 16:03:43 | ||
| 19:53:24 | ||
| 15 Jan 2024 | ||
| 13:44:25 | ||
| 16 Jan 2024 | ||
| 05:54:14 | ||
| hey folks, do you have a development workflow using flakes? if you do, would you mind telling me about it? I need these data for a talk | 16:22:23 | |
| 19:30:32 | ||
| 17 Jan 2024 | ||
| That's a broad topic. But yes. I tend to start as basic as possible. At first it can be fairly self-contained. Making devShells and packages for a project provides a good sanity check that you really understand what goes into the development process. Then comes CI, with its own complication and integrations. The hardest part is often when trying to have multiple projects that interact. At this point it can get complicated with topics like overlays, monorepos, flakebumps, overrides, follows. Reach out if you have q's. | 00:11:22 | |
| cool, few question: 1) what do you use on the CI? 2) how do you manage inter project dependencies and flake bumps | 13:14:31 | |
| and tell me more about follows | 13:14:42 | |
| thanks for your time | 13:14:50 | |
| 14:58:55 | ||
| 18 Jan 2024 | ||
| 04:14:28 | ||
| Yes - I do. HEAVILY. We use nix-direnv internally (though we might switch to flake_env at some point if I can get the flake_env implementation up to snuff with nix-direnv features). We start with devShells for the basic stuff. For instance, we do a LOT of python here (against my wishes) and so we'll start with a devShell that just installs latest python. We then start poking around nixpkgs for stuff we need as we need it and use that. I tend to prefer this solution over dream2nix or poetry2nix, as I have found at least poetry2nix to be rather fragile (haven't tried dream2nix). We have a fair amount of interproject dependence and we simply bump as necessary. Myself and a coworker manage a lot of the dependencies and so we are aware of breaking changes and the like without needing to spend a ton of time on it. Regarding CI: We have used Github Actions, GitLab CI, and I have started using sr.ht's build tooling. Both github and gitlab have been perfectly fine. Sr.ht's is a bit more basic, but for what I am doing there that's fine and dandy. Regarding follows, I think tomberek is saying that setting something like | 15:37:26 | |
| 19 Jan 2024 | ||
| do flake.locks have a specification? I looked through both the rfc repo and the nix repo and couldn't find anything except for soure code. I would assume that there should be some formal-ish document describing the format esp. since there is version field in every context of this question is that yesterday I read through the robotonix docs and stumbled upon the over-the-air updater which is just a number that increases every version, so usually `date "+%s". this reminded me of the problem I had with the soa record serial field when I built nixos-dns which uses the exact same format to detect updates/changes. locking at a random flake.lock I noticed that every entry, except for root, has a | 01:05:32 | |
| 05:11:41 | ||
| 05:14:27 | ||
In reply to @janik0:matrix.orgClosest thing in written form might be the closed: https://github.com/NixOS/rfcs/pull/49/files#diff-7e8d05fadc397ee6d143d6b47af2967d5f467b59820590c69dfc69da0173684dR266 . Also note that we are considering changing the format: https://github.com/NixOS/nix/issues/7730 | 15:01:18 | |
| 22 Jan 2024 | ||
| 15:05:35 | ||
| 19:28:54 | ||
| 23 Jan 2024 | ||
| 17:54:54 | ||
| 18:17:33 | ||
| 19:28:47 | ||
| 19:28:58 | ||