!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture

216 Members
Discussions about Nixpkgs' architecture - https://github.com/NixOS/nixpkgs/labels/architecture47 Servers

Load older messages


SenderMessageTime
10 Jan 2024
@k900:0upti.meK900Except a few attrsets that are explicitly included17:49:46
@9999years:matrix.org9999years actually i just checked the manual and it does say that pythonPackages is an alias for python.pkgs (though it doesn't say how the python version for those sets is chosen/updated), but there's no way to get this information directly, especially in an editor -- you always have to switch to your browser and start searching 17:49:48
@9999years:matrix.org9999years
In reply to @k900:0upti.me
search.nixos.org is that?
ooh, forgot about that (it wasn't around when i picked up nix). it would be great to have that interface available in a text editor! is it possible to run the nixos search (options or packages) locally yet?
17:50:55
@k900:0upti.meK900Yes?17:52:12
@k900:0upti.meK900 nix search nixpkgs foo 17:52:15
@9999years:matrix.org9999years

not quite!

$ nix search nixpkgs haskellPackages
error: no results for the given search term(s)!
17:56:10
@k900:0upti.meK900It doesn't match attrset names17:57:03
@9999years:matrix.org9999yearsthat's... what i was asking for?17:57:13
@k900:0upti.meK900It matches paths that lead to derivations17:57:25
@9999years:matrix.org9999yearsthe attrset names are what i need to type when i write definitions, so that's not very useful in a lot of cases17:57:47
@k900:0upti.meK900I mean specifically package sets that are not packages17:58:18
@k900:0upti.meK900 Like haskellPackages 17:58:21
@9999years:matrix.org9999yearsyeah, i know. i'm saying that i need to be able to search for package sets as well as packages themselves17:58:44
@k900:0upti.meK900 If you e.g. nix search nixpkgs django, it'll show you python3Packages.django 17:58:50
@9999years:matrix.org9999years nix search nixpkgs turtle doesn't show me haskellPackages.turtle unfortunately... 17:59:49
@k900:0upti.meK900 It's possible haskellPackages is explicitly excluded 17:59:58
@k900:0upti.meK900I'm not sure18:00:01
@9999years:matrix.org9999years i think that's probably because haskellPackages is marked as dontRecurseIntoAttrs or whatever? but that sucks 18:00:05
@k900:0upti.meK900Yes18:00:15
@9999years:matrix.org9999yearslike, instead of nixpkgs choosing some package sets that are "worth searching", it would be nice if i could choose which package sets to search18:00:34
@9999years:matrix.org9999yearsit's just a bad user experience -- it's unreliable, so it's hard to trust and integrate into my workflow18:00:55
@k900:0upti.meK900It's honestly mostly an eval time concern and the way to fix it is to fix our eval times18:01:03
@9999years:matrix.org9999yearseval times are part of it, but not the whole picture -- when i'm not searching for a python package, it's really annoying to see a bunch of results from pip. users should be able to choose which package sets to search18:02:22
@9999years:matrix.org9999yearsdo we expose anything autocomplete-like either? something where you can ask "what attribute names are acceptable with this prefix"18:02:45
@k900:0upti.meK900Most commands have shell autocomplete for that18:03:09
@k900:0upti.meK900 Also I'm pretty sure we already have nix search --include/--exclude 18:03:21
@9999years:matrix.org9999years only --exclude. how's the shell autocomplete work? at least in fish i don't get any suggestions when i type nix run nixpkgs# and hit tab 18:05:04
@k900:0upti.meK900image.png
Download image.png
18:05:42
@k900:0upti.meK900Works for me on zsh18:05:44
@9999years:matrix.org9999yearswoah cool18:06:16

Show newer messages


Back to Room ListRoom Version: 9