summary refs log tree commit diff
path: root/modules/packages/dotnet-pack.nix
blob: 75a01a1897b3e193ae7bc20f93d3c6887c936fef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{ 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/
  '';
}