| 14 Dec 2024 |
6pak | because that gets CVEs often | 02:33:34 |
GGG | yeah | 02:33:37 |
6pak | and if you dont update sdk then you wont be able to build anyway | 02:33:46 |
GGG | but if you reference the SDK one, it'd be stuck on that, wouldn't it? | 02:33:49 |
6pak | it should be trivial to bump the sdk anyway | 02:33:53 |
6pak | you can update STJ by just referencing a newer version | 02:34:14 |
GGG | or so you'd think, there are apparently a few packages where upstream hasn't upgraded yet | 02:34:17 |
GGG | yeah, but that'd become a patch we'd have to maintain | 02:34:25 |
GGG | a simple patch, but a patch nonetheless | 02:34:34 |
6pak | it's effectively the same thing as using a newer gcc version than the upstream maintainer uses | 02:36:14 |
6pak | which happens all the time? | 02:36:17 |
GGG | I guess so | 02:38:11 |
| @hbakardzhiev:matrix.org left the room. | 13:08:17 |
| 17 Dec 2024 |
Emmanuel Genga | I'm trying to package a dotnet app for local testing but it tells me that permission is denied, what could be the issue? | 16:30:18 |
GGG | What's the full error message | 16:32:32 |
Emmanuel Genga |
| 18:04:55 |
Emmanuel Genga | * Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
Executing dotnetConfigureHook
Determining projects to restore...
/nix/store/wlknwwx8f79lq8n07b0xh7ddjrrk191h-dotnet-sdk-8.0.404/share/dotnet/sdk/8.0
.404/NuGet.targets(174,5): error : Access to the path '/nix/store/h3k2d6d3rmligh682
d1n1mbdkv9n4fqr-source/YuckLS/obj' is denied. [/nix/store/h3k2d6d3rmligh682d1n1mbdk
v9n4fqr-source/YuckLS/YuckLS.csproj]
/nix/store/wlknwwx8f79lq8n07b0xh7ddjrrk191h-dotnet-sdk-8.0.404/share/dotnet/sdk/8.0 .404/NuGet.targets(174,5): error : Permission denied [/nix/store/h3k2d6d3rmligh68 2d1n1mbdkv9n4fqr-source/YuckLS/YuckLS.csproj]
| 18:05:14 |
Emmanuel Genga | * Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
Executing dotnetConfigureHook
Determining projects to restore...
/nix/store/wlknwwx8f79lq8n07b0xh7ddjrrk191h-dotnet-sdk-8.0.404/share/dotnet/sdk/8.0
.404/NuGet.targets(174,5): error : Access to the path '/nix/store/h3k2d6d3rmligh682
d1n1mbdkv9n4fqr-source/YuckLS/obj' is denied. [/nix/store/h3k2d6d3rmligh682d1n1mbdk
v9n4fqr-source/YuckLS/YuckLS.csproj]
/nix/store/wlknwwx8f79lq8n07b0xh7ddjrrk191h-dotnet-sdk-8.0.404/share/dotnet/sdk/8.0
.404/NuGet.targets(174,5): error : Permission denied \[/nix/store/h3k2d6d3rmligh68
2d1n1mbdkv9n4fqr-source/YuckLS/YuckLS.csproj\]
| 18:05:33 |
GGG | and the code you're using to package said program? | 18:21:39 |
GGG | * and the code you're using to package said app? | 18:24:00 |
Emmanuel Genga | {
fetchFromGitHub,
buildDotnetModule,
dotnet-sdk,
}:
let
dotnet_8 = dotnet-sdk;
in
buildDotnetModule rec {
pname = "yuckls";
version = "";
src = fetchFromGitHub {
owner = "Eugenenoble2005";
repo = "YuckLS";
rev = "dffe86db9c0616c516ee9620f8bf8d57759ffb11";
hash = "sha256-SA39EfwCZyMMxK3zDH25lbOc+Ih3gMDufFyhyQ/es0s=";
};
projectFile = "${src}/YuckLS/YuckLS.csproj";
dotnet-sdk = dotnet_8;
nugetDeps = ./deps.nix;
}
| 18:24:34 |
GGG | yeah, you shouldn't have that ${src} at the start of projectFile | 18:24:51 |
GGG | the rest seems fine, other than the lack of a version | 18:25:16 |
Emmanuel Genga | Not really packaging it for nixpkgs, it's an alpha build and I want to test it out locally | 18:26:06 |
Whovian9369 | Does anyone here have tips on updating enough of a Net 7.0 app so it can be built and run with Net 8.0 and/or 9.0? Derivation I threw together uses dotnetCorePackages.sdk_7_0 and dotnetCorePackages.runtime_7_0, which are EOL and Nix complains on trying to build it since they're broken in Nixpkgs.
The derivation in question is available at https://github.com/Whovian9369/aaru-nix-flake/blob/main/lts.nix in case it helps.
| 21:42:13 |
Emma [it/its] | unless the repo is configured otherwise , you could probably use rollForward | 21:42:45 |
Emma [it/its] | * unless the repo is configured otherwise , you could probably use rollForward mechanics? | 21:42:53 |
Emma [it/its] | ie. try building it under 8/9 and see what happens | 21:43:05 |
Whovian9369 | So updating the derivation to use Net 8.0/9.0 and try running it? | 21:45:42 |
GGG | In reply to @whovian9369:matrix.org
Does anyone here have tips on updating enough of a Net 7.0 app so it can be built and run with Net 8.0 and/or 9.0? Derivation I threw together uses dotnetCorePackages.sdk_7_0 and dotnetCorePackages.runtime_7_0, which are EOL and Nix complains on trying to build it since they're broken in Nixpkgs.
The derivation in question is available at https://github.com/Whovian9369/aaru-nix-flake/blob/main/lts.nix in case it helps.
You could just do a patch (or substituteInPlace if you're lazy) to replace all TargetFramework labels to net8.0 or net9.0 of the app doesn't use any APIs that had breaking changes | 21:49:06 |