about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorIvv <41924494+IvarWithoutBones@users.noreply.github.com>2022-06-21 16:00:48 +0200
committerGitHub <noreply@github.com>2022-06-21 16:00:48 +0200
commit8168651288c40eeb2e82b8e1532d6a5e6df91748 (patch)
treebb78d009c7810fc877ff65c22f9155e2cab2d5ad /doc
parent3d82b8d13befb24ac9b2b78722038b0168a295f5 (diff)
parentba2f31b6db0d71969bb1fcbeaed30925a935a5b0 (diff)
downloadnixlib-8168651288c40eeb2e82b8e1532d6a5e6df91748.tar
nixlib-8168651288c40eeb2e82b8e1532d6a5e6df91748.tar.gz
nixlib-8168651288c40eeb2e82b8e1532d6a5e6df91748.tar.bz2
nixlib-8168651288c40eeb2e82b8e1532d6a5e6df91748.tar.lz
nixlib-8168651288c40eeb2e82b8e1532d6a5e6df91748.tar.xz
nixlib-8168651288c40eeb2e82b8e1532d6a5e6df91748.tar.zst
nixlib-8168651288c40eeb2e82b8e1532d6a5e6df91748.zip
Merge pull request #178446 from zimbatm/dotnet-nugetdeps
buildDotnetModule: allow passing derivations to nugetDeps
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/dotnet.section.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/languages-frameworks/dotnet.section.md b/doc/languages-frameworks/dotnet.section.md
index f7af28a16775..408446674e90 100644
--- a/doc/languages-frameworks/dotnet.section.md
+++ b/doc/languages-frameworks/dotnet.section.md
@@ -72,7 +72,7 @@ The `dotnetCorePackages.sdk` contains both a runtime and the full sdk of a given
 To package Dotnet applications, you can use `buildDotnetModule`. This has similar arguments to `stdenv.mkDerivation`, with the following additions:
 
 * `projectFile` has to be used for specifying the dotnet project file relative to the source root. These usually have `.sln` or `.csproj` file extensions. This can be an array of multiple projects as well.
-* `nugetDeps` has to be used to specify the NuGet dependency file. Unfortunately, these cannot be deterministically fetched without a lockfile. A script to fetch these is available as `passthru.fetch-deps`. This file can also be generated manually using `nuget-to-nix` tool, which is available in nixpkgs.
+* `nugetDeps` takes either a path to a `deps.nix` file, or a derivation. The `deps.nix` file can be generated using the script attached to `passthru.fetch-deps`. This file can also be generated manually using `nuget-to-nix` tool, which is available in nixpkgs. If the argument is a derivation, it will be used directly and assume it has the same output as `mkNugetDeps`.
 * `packNupkg` is used to pack project as a `nupkg`, and installs it to `$out/share`. If set to `true`, the derivation can be used as a dependency for another dotnet project by adding it to `projectReferences`.
 * `projectReferences` can be used to resolve `ProjectReference` project items. Referenced projects can be packed with `buildDotnetModule` by setting the `packNupkg = true` attribute and passing a list of derivations to `projectReferences`. Since we are sharing referenced projects as NuGets they must be added to csproj/fsproj files as `PackageReference` as well.
  For example, your project has a local dependency: