{ pkgs ? import {} }: #pkgs.stdenv.mkDerivation { # name = "dotnet-pack"; # dontUnpack = true; # buildInputs = with pkgs; [ dotnet-sdk dotnet-sdk_7 dotnet-sdk_8 ]; # # # Define the build phase # buildPhase = '' # mkdir -p $out # ln -sf ${pkgs.dotnet-sdk}/* $out/ # ln -sf ${pkgs.dotnet-sdk_7}/* $out/ # ln -sf ${pkgs.dotnet-sdk_8}/* $out/ # ''; #} 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/ ''; }