!CXcIPzDZqFYqqXTaXa:matrix.org

nix-init

67 Members
https://github.com/nix-community/nix-init22 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
7 May 2023
@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

Show newer messages


Back to Room ListRoom Version: 10