dotnetHook: remove unused substitutions

+2 -19
+1 -1
pkgs/build-support/dotnet/build-dotnet-module/default.nix
··· 98 98 else 99 99 dotnet-sdk.meta.platforms; 100 100 101 - hook = callPackage ./hook { inherit dotnet-sdk dotnet-runtime; }; 101 + hook = callPackage ./hook { inherit dotnet-runtime; }; 102 102 103 103 inherit (dotnetCorePackages) systemToDotnetRid; 104 104 in
+1 -15
pkgs/build-support/dotnet/build-dotnet-module/hook/default.nix
··· 1 1 { 2 2 lib, 3 - stdenv, 4 3 which, 5 4 coreutils, 6 - zlib, 7 - openssl, 8 5 makeSetupHook, 9 - zip, 10 6 # Passed from ../default.nix 11 - dotnet-sdk, 12 7 dotnet-runtime, 13 8 }: 14 9 makeSetupHook { 15 10 name = "dotnet-hook"; 16 11 substitutions = { 17 - dynamicLinker = "${stdenv.cc}/nix-support/dynamic-linker"; 18 - libPath = lib.makeLibraryPath [ 19 - stdenv.cc.cc 20 - stdenv.cc.libc 21 - dotnet-sdk.passthru.icu 22 - zlib 23 - openssl 24 - ]; 25 - inherit zip; 26 - dotnetRuntime = if (dotnet-runtime != null) then dotnet-runtime else null; 12 + dotnetRuntime = dotnet-runtime; 27 13 wrapperPath = lib.makeBinPath [ 28 14 which 29 15 coreutils
-3
pkgs/build-support/dotnet/build-dotnet-module/hook/dotnet-hook.sh
··· 3 3 4 4 runHook preConfigure 5 5 6 - local -r dynamicLinker=@dynamicLinker@ 7 - local -r libPath=@libPath@ 8 - 9 6 if [[ -n $__structuredAttrs ]]; then 10 7 local dotnetProjectFilesArray=( "${dotnetProjectFiles[@]}" ) 11 8 local dotnetTestProjectFilesArray=( "${dotnetTestProjectFiles[@]}" )