| 22 Jan 2024 |
samasaur | hey! i'm trying to package https://github.com/hargata/lubelog for Nix. I managed to get it building and running (https://github.com/Samasaur1/lubelog), but it seems to be looking for the webroot relative to the runtime directory, not the location of the executable, so it only actually works properly if you run it from inside the project directory. I have no dotnet experience at all, so I'm hoping there's a simple fix that someone can point me to? | 06:17:30 |
samasaur | I considered trying to patch it and use UseWebRoot to point it to the Nix store, but I couldn't get that to work either | 06:18:25 |
raphi | In reply to @samasaur:matrix.org hey! i'm trying to package https://github.com/hargata/lubelog for Nix. I managed to get it building and running (https://github.com/Samasaur1/lubelog), but it seems to be looking for the webroot relative to the runtime directory, not the location of the executable, so it only actually works properly if you run it from inside the project directory. I have no dotnet experience at all, so I'm hoping there's a simple fix that someone can point me to? try this in your default.nix:
makeWrapperArgs = [
"--set DOTNET_CONTENTROOT ${placeholder "out"}/lib/lubelog"
];
| 07:43:05 |
samasaur | that did it! thanks so much! | 08:03:39 |
raphi | this should at least be documented in the dotnet section of the manual
maybe even add it to makeWrapperArgs by default (environment variables get inherited to child processes which makes me not want to do this) | 08:05:34 |
mdarocha | i’m not sure about making this the default, but it could for sure be added in the docs in something like a “common issues” section | 13:16:10 |
| 27 Jan 2024 |
| Vera joined the room. | 15:10:20 |
| 28 Jan 2024 |
| Remco Schrijver joined the room. | 22:51:24 |
| 31 Jan 2024 |
| Federico Damián Schonborn changed their profile picture. | 03:36:48 |
| Federico Damián Schonborn changed their profile picture. | 06:22:24 |
| 6 Feb 2024 |
| mrtz joined the room. | 20:06:57 |
| 14 Feb 2024 |
| Flafy (moving to @flafy:flafy.dev) changed their display name from Flafy to Flafy (moving to @flafy:flafy.dev). | 11:59:10 |
| 19 Feb 2024 |
| mrtz left the room. | 08:37:02 |
| 23 Feb 2024 |
| Vera changed their display name from zumorica to Vera. | 16:01:30 |
| Vera set a profile picture. | 16:01:35 |
| 25 Feb 2024 |
Emma [it/its] ⚡️ | question, is there a way to enabled PublishTrimmed in nix? | 07:54:32 |
Emma [it/its] ⚡️ | i tried to build a dotnet app with nix and got error : PublishTrimmed is implied by native compilation and cannot be disabled. | 07:55:27 |
Emma [it/its] | (there was, forgot to close my question) | 20:30:50 |
| 9 Mar 2024 |
| Qyriad joined the room. | 00:38:57 |
| amiablechief joined the room. | 03:13:17 |