| 13 May 2024 |
fwam | In reply to @hexa:lossy.network say what you want to say 𤷠started in 2022, active since june 2023 | 23:45:43 |
Qyriad | /run/current-system/sw/bin/nix vs /nix/var/nix/profiles/default/bin/nix, namely | 23:45:43 |
isabel | In reply to @fwam:femdom.solutions "recently" I believe he means she's able to merge PRs | 23:45:50 |
fwam | ah | 23:46:02 |
isabel | not that she's made her first contributionĀ | 23:46:02 |
samrose | In reply to @qyriad:katesiria.org /run/current-system/sw/bin/nix vs /nix/var/nix/profiles/default/bin/nix, namely yes and in general you are dealing with "profiles", and path aliases | 23:47:06 |
fwam | In reply to @isabel:isabelroses.com I believe he means she's able to merge PRs fair | 23:48:05 |
samrose | "nix flake apps" also work well on non-nixos systems, and I've been surprised that more people do not use them to run services and programs | 23:48:07 |
fwam | can't say i like using nix flake outside of nixos, tbh | 23:48:36 |
fwam | * can't say i like using nix flakes outside of nixos, tbh | 23:48:41 |
Qyriad | nix run does kind of magically make arbitrarily-complex-packaged software trivially usable | 23:48:46 |
samrose | and possibly could be a good way to write repeatable tests too | 23:48:56 |
Qyriad | In reply to@fwam:femdom.solutions can't say i like using nix flakes outside of nixos, tbh why? and we ask this as selves-admitted flake⦠well, not haters, but we're very "ugh flakes" | 23:49:26 |
@sigmasquadron:matrix.org | In reply to @qyriad:katesiria.org
nix run does kind of magically make arbitrarily-complex-packaged software trivially usable purely functional magic | 23:49:46 |
fwam | In reply to @qyriad:katesiria.org why? and we ask this as selves-admitted flake⦠well, not haters, but we're very "ugh flakes" 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 |
Qyriad | (speaking of which, y'all know nix run works on non-flakes too right?) | 23:50:19 |
samrose | 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 |
samrose | I did not know that nix run works on non-flakes | 23:51:36 |
Qyriad | it's not exactly ergenomic, but it works on any arbitrary Nix-anything that evaluates to a derivation that sets mainProgram:
$ nix run --impure --expr 'let log2compdb = fetchGit "https://github.com/Qyriad/log2compdb"; in import log2compdb { }' . -- --version
log2compdb 0.2.5
| 23:52:42 |
raitobezarius | In reply to @samrose:matrix.org 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. i recommend samueldr or jade's articles on flakes | 23:53:04 |
Qyriad | all the nix3 commands work on non-flakes, this is just extremely shittily documented (so far) | 23:53:05 |
raitobezarius | they're a really good quick presentation on the layering violations induced by flakes | 23:53:13 |
raitobezarius |
| 23:53:17 |
raitobezarius | * plus what qyriad just said | 23:53:19 |
samrose | 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 |
Qyriad | an "installable" is actually not flake-specific, it's just flake by default (annoyingly) | 23:53:46 |
samrose | yeah you can call a function that makes an installable in nix basically | 23:54:06 |
samrose | ok | 23:54:08 |
easrng | In reply to @qyriad:katesiria.org all the nix3 commands work on non-flakes, this is just extremely shittily documented (so far) do they get the nicer progress display without flakes? | 23:54:52 |
Qyriad | there are four kinds of installables:
flakeref + attrpath a full /nix/store path a nix expression and an (optionally empty) attrpath, with --expr (or -E in Lix) a nix file and an (optionally empty) attrpath, with --file/-f | 23:55:03 |