dotnetHook: remove unused substitutions

+2 -19
+1 -1
pkgs/build-support/dotnet/build-dotnet-module/default.nix
··· 98 else 99 dotnet-sdk.meta.platforms; 100 101 - hook = callPackage ./hook { inherit dotnet-sdk dotnet-runtime; }; 102 103 inherit (dotnetCorePackages) systemToDotnetRid; 104 in
··· 98 else 99 dotnet-sdk.meta.platforms; 100 101 + hook = callPackage ./hook { inherit dotnet-runtime; }; 102 103 inherit (dotnetCorePackages) systemToDotnetRid; 104 in
+1 -15
pkgs/build-support/dotnet/build-dotnet-module/hook/default.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 makeSetupHook { 15 name = "dotnet-hook"; 16 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; 27 wrapperPath = lib.makeBinPath [ 28 which 29 coreutils
··· 1 { 2 lib, 3 which, 4 coreutils, 5 makeSetupHook, 6 # Passed from ../default.nix 7 dotnet-runtime, 8 }: 9 makeSetupHook { 10 name = "dotnet-hook"; 11 substitutions = { 12 + dotnetRuntime = dotnet-runtime; 13 wrapperPath = lib.makeBinPath [ 14 which 15 coreutils
-3
pkgs/build-support/dotnet/build-dotnet-module/hook/dotnet-hook.sh
··· 3 4 runHook preConfigure 5 6 - local -r dynamicLinker=@dynamicLinker@ 7 - local -r libPath=@libPath@ 8 - 9 if [[ -n $__structuredAttrs ]]; then 10 local dotnetProjectFilesArray=( "${dotnetProjectFiles[@]}" ) 11 local dotnetTestProjectFilesArray=( "${dotnetTestProjectFiles[@]}" )
··· 3 4 runHook preConfigure 5 6 if [[ -n $__structuredAttrs ]]; then 7 local dotnetProjectFilesArray=( "${dotnetProjectFiles[@]}" ) 8 local dotnetTestProjectFilesArray=( "${dotnetTestProjectFiles[@]}" )