summary refs log tree commit diff
path: root/modules/packages/dotnet-pack.nix
blob: 0e4a9b492f4dfa726551171930a976531675806a (plain) (blame)
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/
  '';
}