!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

120 Members
23 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
21 Apr 2025
@gggkiller:matrix.orgGGGit's quite long so I just jump around looking at the parts that I don't understand usually23:35:03
@gggkiller:matrix.orgGGGmaybe not the best way, but it is the fastest way (and efficient enough for me)23:35:19
@corruptcomputer:matrix.orgcorruptcomputerAlright, thanks! I'll take a read though what seem like the relevant parts of that, yeah that page is really long. I've read through quite a few man pages though, so it can't be as bad as some of those23:36:36
@corruptcomputer:matrix.orgcorruptcomputer taking 4 pages to say like ls -l will print out the files in a list format lol 23:36:58
@6pak:matrix.org6pak
dotnet-combined =
    (
      with pkgs.dotnetCorePackages;
      combinePackages [
        sdk_10_0-bin
        sdk_9_0-bin
        sdk_8_0-bin
      ]
    ).overrideAttrs
      (old: {
        src = old.src.overrideAttrs (old: {
          postBuild =
            (old.postBuild or "")
            # This is needed to install workload in $HOME
            + ''
              for i in $out/share/dotnet/sdk/*
              do
                i="$(basename $i)"
                i="''${i/-*}" # strip pre-release label
                i="''${i::-2}00" # strip patch

                mkdir -p "$out/share/dotnet/metadata/workloads/$i"
                touch "$out/share/dotnet/metadata/workloads/$i/userlocal"
              done
            '';
        });
      });

this works as a workaround for installing workloads in home

23:42:52

Show newer messages


Back to Room ListRoom Version: 9