query
On this page

mkNugetDeps

pkgs.dotnetCorePackages.mkNugetDeps

Functor
Docs pulled from | This Revision | 10 minutes ago

No reference documentation found yet.

Contribute now!


Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.

Noogle detected

This is a Functor

Learn about functors

Implementation

The following is the current implementation of this function.

{
    name,
    nugetDeps ? null,
    sourceFile ? null,
    installable ? false,
  }:
  (symlinkJoin {
    name = "${name}-nuget-deps";
    paths =
      let
        loadDeps =
          if nugetDeps != null then
            nugetDeps
          else if lib.hasSuffix ".nix" sourceFile then
            assert (lib.isPath sourceFile);
            import sourceFile
          else
            { fetchNuGet }: builtins.map fetchNuGet (lib.importJSON sourceFile);
      in
      loadDeps {
        fetchNuGet = args: fetchNupkg (args // { inherit installable; });
      };
  })
  // {
    inherit sourceFile;
  }