My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/infra/libkookie/nixpkgs/stable/pkgs/development/compilers/dotnet/combine-packages.nix

20 lines
558 B

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_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/
'';
}