2020-01-17 13:54:22 +00:00
|
|
|
packages:
|
|
|
|
{ buildEnv, lib }:
|
|
|
|
let cli = builtins.head packages;
|
|
|
|
in
|
|
|
|
assert lib.assertMsg ((builtins.length packages) != 0)
|
|
|
|
''You must include at least one package, e.g
|
2020-04-28 12:58:35 +01:00
|
|
|
`with dotnetCorePackages; combinePackages [
|
|
|
|
sdk_3_0 aspnetcore_2_1
|
|
|
|
];`'' ;
|
2020-01-17 13:54:22 +00:00
|
|
|
buildEnv {
|
|
|
|
name = "dotnet-core-combined";
|
|
|
|
paths = packages;
|
|
|
|
pathsToLink = [ "/host" "/packs" "/sdk" "/shared" "/templates" ];
|
|
|
|
ignoreCollisions = true;
|
|
|
|
postBuild = ''
|
|
|
|
cp ${cli}/dotnet $out/dotnet
|
|
|
|
mkdir $out/bin
|
|
|
|
ln -s $out/dotnet $out/bin/
|
|
|
|
'';
|
|
|
|
}
|