dotnetHook: remove unused substitutions
This commit is contained in:
@@ -98,7 +98,7 @@ let
|
||||
else
|
||||
dotnet-sdk.meta.platforms;
|
||||
|
||||
hook = callPackage ./hook { inherit dotnet-sdk dotnet-runtime; };
|
||||
hook = callPackage ./hook { inherit dotnet-runtime; };
|
||||
|
||||
inherit (dotnetCorePackages) systemToDotnetRid;
|
||||
in
|
||||
|
||||
@@ -1,29 +1,15 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
which,
|
||||
coreutils,
|
||||
zlib,
|
||||
openssl,
|
||||
makeSetupHook,
|
||||
zip,
|
||||
# Passed from ../default.nix
|
||||
dotnet-sdk,
|
||||
dotnet-runtime,
|
||||
}:
|
||||
makeSetupHook {
|
||||
name = "dotnet-hook";
|
||||
substitutions = {
|
||||
dynamicLinker = "${stdenv.cc}/nix-support/dynamic-linker";
|
||||
libPath = lib.makeLibraryPath [
|
||||
stdenv.cc.cc
|
||||
stdenv.cc.libc
|
||||
dotnet-sdk.passthru.icu
|
||||
zlib
|
||||
openssl
|
||||
];
|
||||
inherit zip;
|
||||
dotnetRuntime = if (dotnet-runtime != null) then dotnet-runtime else null;
|
||||
dotnetRuntime = dotnet-runtime;
|
||||
wrapperPath = lib.makeBinPath [
|
||||
which
|
||||
coreutils
|
||||
|
||||
@@ -3,9 +3,6 @@ dotnetConfigurePhase() {
|
||||
|
||||
runHook preConfigure
|
||||
|
||||
local -r dynamicLinker=@dynamicLinker@
|
||||
local -r libPath=@libPath@
|
||||
|
||||
if [[ -n $__structuredAttrs ]]; then
|
||||
local dotnetProjectFilesArray=( "${dotnetProjectFiles[@]}" )
|
||||
local dotnetTestProjectFilesArray=( "${dotnetTestProjectFiles[@]}" )
|
||||
|
||||
Reference in New Issue
Block a user