Unverified Commit c7c97ed3 authored by David McFarland's avatar David McFarland Committed by GitHub
Browse files

buildDotnetModule: add dontPublish flag (#464749)

parents c4fd5c56 2ce33975
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ let
      # Unfortunately, dotnet has no method for doing this automatically.
      # If unset, all executables in the projects root will get installed. This may cause bloat!
      executables ? null,
      dontPublish ? false,
      # Packs a 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`.
      packNupkg ? false,
      # The packages project file, which contains instructions on how to compile it. This can be an array of multiple project files as well.
+9 −7
Original line number Diff line number Diff line
@@ -420,6 +420,7 @@ dotnetInstallPhase() {
    done
  }

  if [[ -z "${dontPublish-}" ]]; then
    if (( ${#projectFiles[@]} == 0 )); then
      dotnetPublish
    else
@@ -428,6 +429,7 @@ dotnetInstallPhase() {
        dotnetPublish "$projectFile"
      done
    fi
  fi

  if [[ -n ${packNupkg-} ]]; then
    if (( ${#projectFiles[@]} == 0 )); then