nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 which,
5 coreutils,
6 zlib,
7 openssl,
8 makeSetupHook,
9 zip,
10 # Passed from ../default.nix
11 dotnet-sdk,
12 dotnet-runtime,
13}:
14{
15 dotnetConfigureHook = makeSetupHook {
16 name = "dotnet-configure-hook";
17 substitutions = {
18 dynamicLinker = "${stdenv.cc}/nix-support/dynamic-linker";
19 libPath = lib.makeLibraryPath [
20 stdenv.cc.cc
21 stdenv.cc.libc
22 dotnet-sdk.passthru.icu
23 zlib
24 openssl
25 ];
26 };
27 } ./dotnet-configure-hook.sh;
28
29 dotnetBuildHook = makeSetupHook {
30 name = "dotnet-build-hook";
31 } ./dotnet-build-hook.sh;
32
33 dotnetCheckHook = makeSetupHook {
34 name = "dotnet-check-hook";
35 } ./dotnet-check-hook.sh;
36
37 dotnetInstallHook = makeSetupHook {
38 name = "dotnet-install-hook";
39 substitutions = {
40 inherit zip;
41 };
42 } ./dotnet-install-hook.sh;
43
44 dotnetFixupHook = makeSetupHook {
45 name = "dotnet-fixup-hook";
46 substitutions = {
47 dotnetRuntime = if (dotnet-runtime != null) then dotnet-runtime else null;
48 wrapperPath = lib.makeBinPath [
49 which
50 coreutils
51 ];
52 };
53 } ./dotnet-fixup-hook.sh;
54}