Lix | 1104 Members | |
| Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms | 294 Servers |
| Sender | Message | Time |
|---|---|---|
| 13 May 2024 | ||
In reply to @qyriad:katesiria.orgpurely functional magic | 23:49:46 | |
In reply to @qyriad:katesiria.org hm... purely because i didn't have a use for it, yet. nothing nix-shell can't do for me, at least. | 23:50:13 | |
(speaking of which, y'all know nix run works on non-flakes too right?) | 23:50:19 | |
| I don't pretend to even know what the problems are with flakes, although I do believe you all that there are problems. I just went all in on them about 2 years ago, and just dealt with whatever comes along with that. | 23:51:16 | |
| I did not know that nix run works on non-flakes | 23:51:36 | |
it's not exactly ergenomic, but it works on any arbitrary Nix-anything that evaluates to a derivation that sets mainProgram: | 23:52:42 | |
In reply to @samrose:matrix.orgi recommend samueldr or jade's articles on flakes | 23:53:04 | |
| all the nix3 commands work on non-flakes, this is just extremely shittily documented (so far) | 23:53:05 | |
| they're a really good quick presentation on the layering violations induced by flakes | 23:53:13 | |
| 23:53:17 | |
| * plus what qyriad just said | 23:53:19 | |
can you use nix run on non flakes because you can make an "installable" with nix, which then nix run can run? | 23:53:24 | |
| an "installable" is actually not flake-specific, it's just flake by default (annoyingly) | 23:53:46 | |
| yeah you can call a function that makes an installable in nix basically | 23:54:06 | |
| ok | 23:54:08 | |
In reply to @qyriad:katesiria.orgdo they get the nicer progress display without flakes? | 23:54:52 | |
there are four kinds of installables:
| 23:55:03 | |
In reply to @easrng:yuri.imyes | 23:55:26 | |
In reply to@easrng:yuri.imyes, that's part of nix3/new-cli, not flakes, but you can actually get them in the old CLI too: nix-build --log-format bar-with-logs '<nixpkgs>' hello | 23:55:27 | |
In reply to@qyriad:katesiria.orgIn order: all do the same thing | 23:57:00 | |
| So maybe there are some ideas in Lix to improve flakes over time eh? | 23:57:07 | |
| that's the hope! | 23:57:14 | |
oh yeah you can also use flakes with the old CLI. I don't think this is documented literally anywhere, but: nix-build 'flake:nixpkgs' -A neovim | 23:58:56 | |
In reply to @qyriad:katesiria.orgSomeone did show me that a while back at nixcon in paris :) | 23:59:35 | |
| (the Nix docs team refusing to document experimental features really just does more harm than good, imho) | 23:59:59 | |
| 14 May 2024 | ||
| It seems like the nix run approach could be a candidate way to test non-nixos functionality of Lix on Nix I've been using it to do some tests of building postgres, postgres extensions, and then running pgtap and other postgres tests on a package set. I guess that is more for testing the runnig of software packaged with nix It seemed the nix tests are mostly just like bash integration tests of the cli executable. | 00:03:07 | |
I am not sure if it would help to have some matrix of machines (x86_64-linux, wsl2, macos, aarch64-linux) that could test the installation of Lix, and then some nix profile install followed by maybe not nix run, but rather just using what was installed, and checking integrity of the Lix installation and package installation, and ... I don't know immediately what else | 00:07:30 | |
In reply to @samrose:matrix.orgthe open source postgresql project uses cirrusci https://cirrus-ci.org/faq/#are-there-any-limits which offers a matrix of builders for free to open source projects with the limitations in that link (not the only solution but it might help to use resources that are free to open source projects potentially) | 00:10:39 | |
| hmm, that is good to know | 00:13:06 | |
| aarch64-linux is what we are most lacking in right now | 00:13:19 | |