mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 15:47:28 +00:00
7fa8332907
Fixup assert Fixup: Move comment to top Fixup combine Fixup combine Fixup buildDotnet Fixup default.nix Fixup combine packages dotnetCorePackages: Fixup combinePackages Co-Authored-By: Jon <jonringer@users.noreply.github.com>
21 lines
574 B
Nix
21 lines
574 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 {
|
|
packages = [ sdk_3_0 aspnetcore_2_1 ];
|
|
};`'' ;
|
|
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/
|
|
'';
|
|
}
|