!CXcIPzDZqFYqqXTaXa:matrix.org

nix-init

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

Load older messages


SenderMessageTime
7 May 2023
@raitobezarius:matrix.orgraitobezariusah yes21:14:09
@raitobezarius:matrix.orgraitobezariusdependency relaxation21:14:12
@figsoda:matrix.orgfigsoda * and if they use a different version there would be problems21:14:15
@raitobezarius:matrix.orgraitobezarius figsoda: is the devshell compatible with envrc? 21:14:50
@raitobezarius:matrix.orgraitobezarius * figsoda: is the devshell compatible with envrc/direnv? 21:14:51
@figsoda:matrix.orgfigsodaI would imagine so? idk21:15:04
@raitobezarius:matrix.orgraitobezariushow do you enter into it?21:15:12
@figsoda:matrix.orgfigsoda nix develop 21:15:17
@raitobezarius:matrix.orgraitobezariusI tried nix develop and "use flake" no one worked21:15:19
@raitobezarius:matrix.orgraitobezariusrustc is not exposed in it, is it expected?21:15:25
@figsoda:matrix.orgfigsodait is expected21:15:35
@raitobezarius:matrix.orgraitobezariusoh I need to provide my own I guess then21:15:43
@figsoda:matrix.orgfigsodathe dev shell just have some generated files and env vars for debugging21:15:56
@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

Show newer messages


Back to Room ListRoom Version: 10