mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
895b69405c
This simplifies the code a bit and makes it possible to use dotnetCorePackages.combinePackages as dotnet-runtime again.
Partial revert of ddd08e404f
.
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, which
|
|
, coreutils
|
|
, zlib
|
|
, openssl
|
|
, makeSetupHook
|
|
, zip
|
|
# Passed from ../default.nix
|
|
, dotnet-sdk
|
|
, dotnet-runtime
|
|
}:
|
|
{
|
|
dotnetConfigureHook = makeSetupHook
|
|
{
|
|
name = "dotnet-configure-hook";
|
|
substitutions = {
|
|
dynamicLinker = "${stdenv.cc}/nix-support/dynamic-linker";
|
|
libPath = lib.makeLibraryPath [
|
|
stdenv.cc.cc
|
|
stdenv.cc.libc
|
|
dotnet-sdk.passthru.icu
|
|
zlib
|
|
openssl
|
|
];
|
|
};
|
|
}
|
|
./dotnet-configure-hook.sh;
|
|
|
|
dotnetBuildHook = makeSetupHook
|
|
{
|
|
name = "dotnet-build-hook";
|
|
}
|
|
./dotnet-build-hook.sh;
|
|
|
|
dotnetCheckHook = makeSetupHook
|
|
{
|
|
name = "dotnet-check-hook";
|
|
}
|
|
./dotnet-check-hook.sh;
|
|
|
|
dotnetInstallHook = makeSetupHook
|
|
{
|
|
name = "dotnet-install-hook";
|
|
substitutions = {
|
|
inherit zip;
|
|
};
|
|
}
|
|
./dotnet-install-hook.sh;
|
|
|
|
dotnetFixupHook = makeSetupHook
|
|
{
|
|
name = "dotnet-fixup-hook";
|
|
substitutions = {
|
|
dotnetRuntime = if (dotnet-runtime != null) then dotnet-runtime else null;
|
|
wrapperPath = lib.makeBinPath [ which coreutils ];
|
|
};
|
|
}
|
|
./dotnet-fixup-hook.sh;
|
|
}
|