!CXcIPzDZqFYqqXTaXa:matrix.org

nix-init

58 Members
https://github.com/nix-community/nix-init18 Servers

Load older messages


SenderMessageTime
7 May 2023
@raitobezarius:matrix.orgraitobezariusgotcha21:16:05
@figsoda:matrix.orgfigsodaand you don't have to run it all the time if you don't need the debug env vars21:16:32
@figsoda:matrix.orgfigsodaas long as the generated files are not garbage collected21:16:41
@raitobezarius:matrix.orgraitobezariuswhere should sourceRoot goes?21:17:07
@raitobezarius:matrix.orgraitobezariusnurl feature or prompt in nix-init?21:17:15
@raitobezarius:matrix.orgraitobezariusI think a nurl feature is better21:17:23
@figsoda:matrix.orgfigsodahow would a nurl feature work exactly?21:17:32
@raitobezarius:matrix.orgraitobezarius $url?sourceRoot=$sourceRoot 21:17:41
@raitobezarius:matrix.orgraitobezariusthat breaks query args though I guess21:17:51
@figsoda:matrix.orgfigsodaI don't think we are fetching the them with source root21:18:04
@raitobezarius:matrix.orgraitobezariusyeah but if I modify nurl to do it21:18:12
@raitobezarius:matrix.orgraitobezarius and generate a proper fetch with sourceRoot in it 21:18:19
@raitobezarius:matrix.orgraitobezariuswouldn't that be better?21:18:21
@raitobezarius:matrix.orgraitobezarius you would do nix-init -u $url?sourceRoot=$subdir and proceed as always 21:18:32
@figsoda:matrix.orgfigsoda I'm thinking we run this for subdirectories, maybe with a configurable max depth 21:18:56
@figsoda:matrix.orgfigsoda and we just have to "cd" into sourceRoot here: https://github.com/nix-community/nix-init/blob/9042eccd1d09f285ff3ff9468bf4faa3f4c0fbe7/src/main.rs#L375 21:19:28
@figsoda:matrix.orgfigsoda * and we just have to "cd" into sourceRoot here afterwards: https://github.com/nix-community/nix-init/blob/9042eccd1d09f285ff3ff9468bf4faa3f4c0fbe7/src/main.rs#L375 21:19:43
@figsoda:matrix.orgfigsoda the nurl stuff goes in src =, sourceRoot is part of mkDerivation 21:20:15
@raitobezarius:matrix.orgraitobezariusGood point21:21:25
@raitobezarius:matrix.orgraitobezarius
In reply to @figsoda:matrix.org
I'm thinking we run this for subdirectories, maybe with a configurable max depth
What would that be for though?
21:21:57
@raitobezarius:matrix.orgraitobezariusYou probably want to run inside the source root directly?21:22:05
@figsoda:matrix.orgfigsoda
In reply to @raitobezarius:matrix.org
What would that be for though?
we would find subdirectories that contain those files, ask the user to choose a sourceRoot if any was found, then mutate src_dir to the chosen subdirectory
21:23:43
@figsoda:matrix.orgfigsoda
In reply to @raitobezarius:matrix.org
What would that be for though?
* we would find subdirectories that contain those files, ask the user to choose a sourceRoot if any was found, then mutate/shadow src_dir to the chosen subdirectory
21:23:59
@figsoda:matrix.orgfigsoda main.rs is a bit unorganized right now, I will try to make a refactor in the future 21:25:11
@figsoda:matrix.orgfigsoda * main.rs is a bit unorganized right now, I will try to make a refactor in the (probably not near) future 21:25:23
@raitobezarius:matrix.orgraitobezariushacking something21:46:27
@raitobezarius:matrix.orgraitobezarius hm figsoda filename completers cannot take a restriction for the folders to autocomplete right? 21:50:33
@raitobezarius:matrix.orgraitobezariusdo I need a helper hmm?21:50:43
@raitobezarius:matrix.orgraitobezariusah yes doesn't seem like there's "here's a list of strings helper"21:51:32
@figsoda:matrix.orgfigsoda
In reply to @raitobezarius:matrix.org
hm figsoda filename completers cannot take a restriction for the folders to autocomplete right?
yes I think need a new enum variant
21:51:41

Show newer messages


Back to Room ListRoom Version: 10