| 7 May 2023 |
raitobezarius | dependency relaxation | 21:14:12 |
figsoda | * and if they use a different version there would be problems | 21:14:15 |
raitobezarius | figsoda: is the devshell compatible with envrc? | 21:14:50 |
raitobezarius | * figsoda: is the devshell compatible with envrc/direnv? | 21:14:51 |
figsoda | I would imagine so? idk | 21:15:04 |
raitobezarius | how do you enter into it? | 21:15:12 |
figsoda | nix develop | 21:15:17 |
raitobezarius | I tried nix develop and "use flake" no one worked | 21:15:19 |
raitobezarius | rustc is not exposed in it, is it expected? | 21:15:25 |
figsoda | it is expected | 21:15:35 |
raitobezarius | oh I need to provide my own I guess then | 21:15:43 |
figsoda | the dev shell just have some generated files and env vars for debugging | 21:15:56 |
raitobezarius | gotcha | 21:16:05 |
figsoda | and you don't have to run it all the time if you don't need the debug env vars | 21:16:32 |
figsoda | as long as the generated files are not garbage collected | 21:16:41 |
raitobezarius | where should sourceRoot goes? | 21:17:07 |
raitobezarius | nurl feature or prompt in nix-init? | 21:17:15 |
raitobezarius | I think a nurl feature is better | 21:17:23 |
figsoda | how would a nurl feature work exactly? | 21:17:32 |
raitobezarius | $url?sourceRoot=$sourceRoot | 21:17:41 |
raitobezarius | that breaks query args though I guess | 21:17:51 |
figsoda | I don't think we are fetching the them with source root | 21:18:04 |
raitobezarius | yeah but if I modify nurl to do it | 21:18:12 |
raitobezarius | and generate a proper fetch with sourceRoot in it | 21:18:19 |
raitobezarius | wouldn't that be better? | 21:18:21 |
raitobezarius | you would do nix-init -u $url?sourceRoot=$subdir and proceed as always | 21:18:32 |
figsoda | I'm thinking we run this for subdirectories, maybe with a configurable max depth | 21:18:56 |
figsoda | 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 | * 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 | the nurl stuff goes in src =, sourceRoot is part of mkDerivation | 21:20:15 |