1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{ 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/ ''; }