2020-04-24 23:36:52 +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
|
2021-03-23 19:22:30 +00:00
|
|
|
`with dotnetCorePackages; combinePackages [
|
2021-10-17 09:34:42 +00:00
|
|
|
sdk_3_1 aspnetcore_5_0
|
2021-03-23 19:22:30 +00:00
|
|
|
];`'' ;
|
2020-04-24 23:36:52 +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/
|
|
|
|
'';
|
|
|
|
}
|