mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
21 lines
558 B
Nix
21 lines
558 B
Nix
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
|
|
`with dotnetCorePackages; combinePackages [
|
|
sdk_3_1 aspnetcore_5_0
|
|
];`'' ;
|
|
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/
|
|
'';
|
|
}
|