diff options
author | Guillaume Maudoux <guillaume.maudoux@tweag.io> | 2022-08-10 12:34:03 +0200 |
---|---|---|
committer | whonore <wolfhonore@gmail.com> | 2023-04-29 18:54:04 -0400 |
commit | 6efefdc8c16fe1c483f35e3c5f6c1de45f5f4e23 (patch) | |
tree | e0dfe90623427989f8d8d60435567200dd57abef /pkgs/build-support/dotnet | |
parent | 09d1509ad36c538eea526d04b9f8fe4585b2fbf6 (diff) | |
download | nixpkgs-6efefdc8c16fe1c483f35e3c5f6c1de45f5f4e23.tar nixpkgs-6efefdc8c16fe1c483f35e3c5f6c1de45f5f4e23.tar.gz nixpkgs-6efefdc8c16fe1c483f35e3c5f6c1de45f5f4e23.tar.bz2 nixpkgs-6efefdc8c16fe1c483f35e3c5f6c1de45f5f4e23.tar.lz nixpkgs-6efefdc8c16fe1c483f35e3c5f6c1de45f5f4e23.tar.xz nixpkgs-6efefdc8c16fe1c483f35e3c5f6c1de45f5f4e23.tar.zst nixpkgs-6efefdc8c16fe1c483f35e3c5f6c1de45f5f4e23.zip |
buildDotnetModule: add support for dotnet tools
Diffstat (limited to 'pkgs/build-support/dotnet')
-rw-r--r-- | pkgs/build-support/dotnet/build-dotnet-module/default.nix | 3 | ||||
-rw-r--r-- | pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-configure-hook.sh | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/build-support/dotnet/build-dotnet-module/default.nix b/pkgs/build-support/dotnet/build-dotnet-module/default.nix index bae71482836..07e62835956 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/default.nix +++ b/pkgs/build-support/dotnet/build-dotnet-module/default.nix @@ -261,6 +261,9 @@ stdenvNoCC.mkDerivation (args // { cd "$src" echo "Restoring project..." + ${dotnet-sdk}/bin/dotnet tool restore + mv $HOME/.nuget/packages/* $tmp/nuget_pkgs || true + for rid in "${lib.concatStringsSep "\" \"" runtimeIds}"; do (( ''${#projectFiles[@]} == 0 )) && dotnetRestore "" "$rid" diff --git a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-configure-hook.sh b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-configure-hook.sh index 1e33ebbaef7..0e502fe6a14 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-configure-hook.sh +++ b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-configure-hook.sh @@ -39,6 +39,8 @@ cat <<EOF > "./NuGet.config" </configuration> EOF + env dotnet tool restore --add-source "@nugetSource@/lib" + for project in ${projectFile[@]} ${testProjectFile[@]-}; do dotnetRestore "$project" done |