dotnetHook: remove unused substitutions

This commit is contained in:
David McFarland
2025-06-26 11:35:20 -03:00
parent c8ae12c531
commit e84eb87a63
3 changed files with 2 additions and 19 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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[@]}" )