!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

118 Members
23 Servers

Load older messages


SenderMessageTime
14 Dec 2024
@6pak:matrix.org6pakbecause that gets CVEs often02:33:34
@gggkiller:matrix.orgGGGyeah02:33:37
@6pak:matrix.org6pakand if you dont update sdk then you wont be able to build anyway02:33:46
@gggkiller:matrix.orgGGGbut if you reference the SDK one, it'd be stuck on that, wouldn't it?02:33:49
@6pak:matrix.org6pakit should be trivial to bump the sdk anyway02:33:53
@6pak:matrix.org6pak you can update STJ by just referencing a newer version 02:34:14
@gggkiller:matrix.orgGGG or so you'd think, there are apparently a few packages where upstream hasn't upgraded yet 02:34:17
@gggkiller:matrix.orgGGG yeah, but that'd become a patch we'd have to maintain 02:34:25
@gggkiller:matrix.orgGGGa simple patch, but a patch nonetheless02:34:34
@6pak:matrix.org6pakit's effectively the same thing as using a newer gcc version than the upstream maintainer uses02:36:14
@6pak:matrix.org6pakwhich happens all the time?02:36:17
@gggkiller:matrix.orgGGGI guess so02:38:11
@hbakardzhiev:matrix.org@hbakardzhiev:matrix.org left the room.13:08:17
17 Dec 2024
@genga898:matrix.orgEmmanuel GengaI'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
@gggkiller:matrix.orgGGGWhat's the full error message16:32:32
@genga898:matrix.orgEmmanuel Genga
18:04:55
@genga898:matrix.orgEmmanuel 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
@genga898:matrix.orgEmmanuel 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
@gggkiller:matrix.orgGGGand the code you're using to package said program?18:21:39
@gggkiller:matrix.orgGGG* and the code you're using to package said app?18:24:00
@genga898:matrix.orgEmmanuel 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
@gggkiller:matrix.orgGGG yeah, you shouldn't have that ${src} at the start of projectFile 18:24:51
@gggkiller:matrix.orgGGG the rest seems fine, other than the lack of a version 18:25:16
@genga898:matrix.orgEmmanuel Genga Not really packaging it for nixpkgs, it's an alpha build and I want to test it out locally 18:26:06
@whovian9369:matrix.orgWhovian9369

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:rory.gayEmma [it/its]unless the repo is configured otherwise , you could probably use rollForward21:42:45
@emma:rory.gayEmma [it/its]* unless the repo is configured otherwise , you could probably use rollForward mechanics?21:42:53
@emma:rory.gayEmma [it/its]ie. try building it under 8/9 and see what happens21:43:05
@whovian9369:matrix.orgWhovian9369So updating the derivation to use Net 8.0/9.0 and try running it?21:45:42
@gggkiller:matrix.orgGGG
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

Show newer messages


Back to Room ListRoom Version: 9