Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
44 lines
691 B
Nix
44 lines
691 B
Nix
# 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 ];
|
|
}
|