!tDnwWRNkmmYtMXfaZl:nixos.org

Nix Language

1922 Members
Nix programming language357 Servers

Load older messages


SenderMessageTime
28 May 2021
@emilazy:matrix.orgemilythat's more IDE features than I expected anyone to be able to wring out of Nix :)06:10:45
@aaronjanse:matrix.orgaaronjanse Try clicking on pkgs.gcc to see how the bootstrapping works 06:10:48
@aaronjanse:matrix.orgaaronjanseOh there's much more to do!06:10:58
@aaronjanse:matrix.orgaaronjanseThat's just a start!06:11:01
@aaronjanse:matrix.orgaaronjanseNext I have stuff like pulling comments from around function documentation and showing them when you hover06:11:23
@aaronjanse:matrix.orgaaronjanse And auto-complete when you do lambda { ... } 06:11:37
@aaronjanse:matrix.orgaaronjanse * And auto-complete when you do some_lambda { ... } 06:11:41
@emilazy:matrix.orgemilythanks for working on this, it looks like it could solve some of the worst usability issues of nix!06:12:38
@aaronjanse:matrix.orgaaronjanseThank you!06:12:43
@aaronjanse:matrix.orgaaronjanseI'm excited06:12:49
@aaronjanse:matrix.orgaaronjanseI also think it can significantly help newbies understand how Nix works06:13:03
@aaronjanse:matrix.orgaaronjanseOoh and eventually I want to do auto-complete + docs for NixOS options by evaluating the NixOS system then backtracing to find where options are defined (instead of ugly hacks)06:13:55
@aaronjanse:matrix.orgaaronjanse * Ooh and eventually I want to do auto-complete + docs for NixOS options by evaluating the NixOS system then backtracing to find where you're setting your options (instead of ugly hacks)06:14:07
@aaronjanse:matrix.orgaaronjanse * Ooh and eventually I want to do auto-complete + docs for NixOS options by evaluating the NixOS system then backtracing to find where you're setting your options (instead of using ugly hacks to do autocomplete)06:14:18
@emilazy:matrix.orgemilyif you want to evaluate all of nixos on the fly you might need to reconsider the "does not aim to correctly implement Nix in its entirety" part :)06:17:34
@emilazy:matrix.orgemilyhow are certain impure features handled, incidentally? I guess in flakes mode there's no concern about that06:18:00
@emilazy:matrix.orgemilybut it could be weird otherwise06:18:13
@aaronjanse:matrix.orgaaronjanseOh yeah right now it has no impure features06:18:16
@aaronjanse:matrix.orgaaronjanse
In reply to @emilazy:matrix.org
if you want to evaluate all of nixos on the fly you might need to reconsider the "does not aim to correctly implement Nix in its entirety" part :)
The trick is that we can evaluate enough to find where the options are without fully evaluating all the packages
06:18:54
@aaronjanse:matrix.orgaaronjanse Which is why it can do stuff like know the meta & location of the firefox derivation without knowing how to fully evaluate the stuff needed to compile it 06:19:38
@emilazy:matrix.orgemily nod 06:20:03
@emilazy:matrix.orgemilylaziness is pretty useful for that06:20:14
@aaronjanse:matrix.orgaaronjanseExactly06:20:22
@aaronjanse:matrix.orgaaronjanse
In reply to @emilazy:matrix.org
how are certain impure features handled, incidentally? I guess in flakes mode there's no concern about that
Hehe, it definitely is hacky right now
06:20:36
@aaronjanse:matrix.orgaaronjanseLemme find an example06:20:50
@emilazy:matrix.orgemilyit should be possible to handle without compromises using the pure-evaluation mode in unstable nix, but that's coupled to flakes sadly06:21:01
@aaronjanse:matrix.orgaaronjanseYeah06:21:21
@aaronjanse:matrix.orgaaronjanseOh! I did figure out how to find the inputs to a flake in the /nix/store06:21:45
@aaronjanse:matrix.orgaaronjansehttps://github.com/aaronjanse/nix-eval-lsp/blob/0c263b802d83b3988924d6db55a6a0ca60faf578/src/builtins.rs#L430-L43206:22:05
@aaronjanse:matrix.orgaaronjanseI didn't want to figure out hashing so it does /nix/store/00000... if you cast a path06:22:23

Show newer messages


Back to Room ListRoom Version: 6