Loading pkgs/test/dotnet/default.nix +1 −0 Original line number Diff line number Diff line Loading @@ -5,4 +5,5 @@ use-dotnet-from-env = lib.recurseIntoAttrs (callPackage ./use-dotnet-from-env { }); structured-attrs = lib.recurseIntoAttrs (callPackage ./structured-attrs { }); final-attrs = lib.recurseIntoAttrs (callPackage ./final-attrs { }); nuget-deps = lib.recurseIntoAttrs (callPackage ./nuget-deps { }); } pkgs/test/dotnet/nuget-deps/default.nix 0 → 100644 +44 −0 Original line number Diff line number Diff line # Tests that `nugetDeps` in buildDotnetModule can handle various types. { lib, dotnet-sdk, buildPackages, # buildDotnetModule runCommand, }: let inherit (lib) mapAttrs ; inherit (buildPackages) emptyDirectory buildDotnetModule ; in mapAttrs ( name: nugetDeps: buildDotnetModule { name = "nuget-deps-${name}"; unpackPhase = '' runHook preUnpack mkdir test cd test dotnet new console -o . ls -l runHook postUnpack ''; inherit nugetDeps; } ) { "null" = null; "file" = ./nuget-deps.nix; "derivation" = emptyDirectory; "list" = [ emptyDirectory ]; } pkgs/test/dotnet/nuget-deps/nuget-deps.nix 0 → 100644 +6 −0 Original line number Diff line number Diff line # This file was automatically generated by passthru.fetch-deps. # Please dont edit it manually, your changes might get overwritten! { fetchNuGet }: [ ] Loading
pkgs/test/dotnet/default.nix +1 −0 Original line number Diff line number Diff line Loading @@ -5,4 +5,5 @@ use-dotnet-from-env = lib.recurseIntoAttrs (callPackage ./use-dotnet-from-env { }); structured-attrs = lib.recurseIntoAttrs (callPackage ./structured-attrs { }); final-attrs = lib.recurseIntoAttrs (callPackage ./final-attrs { }); nuget-deps = lib.recurseIntoAttrs (callPackage ./nuget-deps { }); }
pkgs/test/dotnet/nuget-deps/default.nix 0 → 100644 +44 −0 Original line number Diff line number Diff line # Tests that `nugetDeps` in buildDotnetModule can handle various types. { lib, dotnet-sdk, buildPackages, # buildDotnetModule runCommand, }: let inherit (lib) mapAttrs ; inherit (buildPackages) emptyDirectory buildDotnetModule ; in mapAttrs ( name: nugetDeps: buildDotnetModule { name = "nuget-deps-${name}"; unpackPhase = '' runHook preUnpack mkdir test cd test dotnet new console -o . ls -l runHook postUnpack ''; inherit nugetDeps; } ) { "null" = null; "file" = ./nuget-deps.nix; "derivation" = emptyDirectory; "list" = [ emptyDirectory ]; }
pkgs/test/dotnet/nuget-deps/nuget-deps.nix 0 → 100644 +6 −0 Original line number Diff line number Diff line # This file was automatically generated by passthru.fetch-deps. # Please dont edit it manually, your changes might get overwritten! { fetchNuGet }: [ ]