!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

125 Members
24 Servers

Load older messages


SenderMessageTime
16 Oct 2023
@emma:conduit.rory.gayEmma [it/its] ⚡️
{ pkgs ? import <nixpkgs> {} }:

pkgs.symlinkJoin {
  name = "dotnet-pack";
  paths = [ pkgs.dotnet-sdk_8 pkgs.dotnet-sdk_7 pkgs.dotnet-sdk ];
  postBuild = ''
    rm -rfv $out/bin
    rm -rfv $out/dotnet
    cp -rv ${pkgs.dotnet-sdk_8}/dotnet $out/
    cp -rv ${pkgs.dotnet-sdk_8}/bin $out/
  '';
}

wanted to share this derivation incase anyone ever needed to use multiple dotnet versions at once

02:18:11
@emma:conduit.rory.gayEmma [it/its] ⚡️
[Rory@Rory-desktop:/Rory-Open-Architecture]$ dotnet --list-sdks
6.0.414 [/nix/store/g0j4gcarcbqkxl3i14h4ls3qsmyjdc2m-dotnet-pack/sdk]
7.0.401 [/nix/store/g0j4gcarcbqkxl3i14h4ls3qsmyjdc2m-dotnet-pack/sdk]
8.0.100-rc.1.23455.8 [/nix/store/g0j4gcarcbqkxl3i14h4ls3qsmyjdc2m-dotnet-pack/sdk]
02:18:24
@emma:conduit.rory.gayEmma [it/its] ⚡️needed that to make rider work with a solution that has both net7 and net802:19:11
@magikarpz:matrix.orgmdarocha we already have that in nixpkgs 06:15:39
@magikarpz:matrix.orgmdarochait’s also described in the nixpkgs manual06:15:46
@magikarpz:matrix.orgmdarochadotnetCorePackages.combinePackages06:15:57
17 Oct 2023
@emma:conduit.rory.gayEmma [it/its] ⚡️ changed their display name from Emma [it/its] ⚡️ to Emma [it/its] (MRU test) ⚡️.15:25:22
@emma:conduit.rory.gayEmma [it/its] ⚡️ changed their display name from Emma [it/its] (MRU test) ⚡️ to Emma [it/its] ⚡️.15:32:43
@emma:conduit.rory.gayEmma [it/its] ⚡️ 15:33:56
@emma:conduit.rory.gayEmma [it/its] ⚡️ changed their display name from Emma [it/its] ⚡️ to Emma [it/its] (MRU VeryFast(tm) test) ⚡️.15:37:11
@emma:conduit.rory.gayEmma [it/its] ⚡️ 15:37:31
@emma:conduit.rory.gayEmma [it/its] ⚡️ changed their display name from Emma [it/its] (MRU VeryFast(tm) test) ⚡️ to Emma [it/its] (MRU VeryFast(tm) test (maybe??)) ⚡️.15:40:44
@emma:conduit.rory.gayEmma [it/its] ⚡️ 15:40:53
@emma:conduit.rory.gayEmma [it/its] ⚡️ changed their display name from Emma [it/its] (MRU VeryFast(tm) test (maybe??)) ⚡️ to Emma [it/its] (test) ⚡️.15:42:31
@emma:conduit.rory.gayEmma [it/its] ⚡️ 15:42:50
@emma:conduit.rory.gayEmma [it/its] ⚡️ changed their display name from Emma [it/its] (test) ⚡️ to Emma [it/its] ⚡️.16:41:43
18 Oct 2023
@emma:conduit.rory.gayEmma [it/its] ⚡️ changed their display name from Emma [it/its] ⚡️ to Emma [it/its] global profile test ⚡️.03:36:05
@emma:conduit.rory.gayEmma [it/its] ⚡️ 03:36:21
@emma:conduit.rory.gayEmma [it/its] ⚡️ changed their display name from Emma [it/its] global profile test ⚡️ to Emma [it/its] global profile test 2 ⚡️.03:50:03
@emma:conduit.rory.gayEmma [it/its] ⚡️ 03:50:13
@emma:conduit.rory.gayEmma [it/its] ⚡️ changed their display name from Emma [it/its] global profile test 2 ⚡️ to Emma [it/its] ⚡️.04:04:01
25 Oct 2023
@federicodschonborn:matrix.orgFederico Damián Schonborn changed their profile picture.00:13:23
27 Oct 2023
@federicodschonborn:matrix.orgFederico Damián Schonborn changed their profile picture.01:24:54
1 Nov 2023
@emma:conduit.rory.gayEmma [it/its] ⚡️i wonder if anyone knows how one would go about installing workloads15:52:52
@emma:conduit.rory.gayEmma [it/its] ⚡️ i'd be fine with throwing dotnet workload install into a derivation, i'd just need to figure out how to make a "NuGet package source" 15:53:55
@emma:conduit.rory.gayEmma [it/its] ⚡️i wonder if i could write something that spits out an entire tree of derivations16:07:24
@emma:conduit.rory.gayEmma [it/its] ⚡️
Unhandled exception: System.ComponentModel.Win32Exception (2): An error occurred trying to start process '/home/Rory/git/DotnetManifestsToNix/DotnetManifestsToNix/bin/Debug/net7.0/DotnetManifestsToNix' with working directory '/home/Rory/git/DotnetManifestsToNix/DotnetManifestsToNix'. No such file or directory

i wonder what causes this when using dotnet run

16:54:39
2 Nov 2023
@emma:conduit.rory.gayEmma [it/its] ⚡️apparently related to broken dotnet 7, fun03:50:14
@emma:conduit.rory.gayEmma [it/its] ⚡️
Converting workload microsoft.net.workload.mono.toolchain version 6.0.5
Workload wasm-tools description .NET WebAssembly build tools
Workload wasm-tools pack Microsoft.NET.Runtime.WebAssembly.Sdk
Workload wasm-tools pack Microsoft.NETCore.App.Runtime.Mono.browser-wasm
Workload wasm-tools pack Microsoft.NETCore.App.Runtime.AOT.Cross.browser-wasm
Workload wasm-tools extend microsoft-net-runtime-mono-tooling
Workload wasm-tools extend microsoft-net-sdk-emscripten
Workload wasm-tools platform win-x64
Workload wasm-tools platform linux-x64
Workload wasm-tools platform osx-x64
Workload wasm-tools platform osx-arm64
Workload microsoft-net-runtime-android description Android Mono Runtime

03:59:37
@emma:conduit.rory.gayEmma [it/its] ⚡️ should i be skipping any workloads that dont declare linux as a platform? 04:00:06

Show newer messages


Back to Room ListRoom Version: 9