nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1# Tests that `nugetDeps` in buildDotnetModule can handle various types.
2
3{
4 lib,
5 dotnet-sdk,
6 buildPackages, # buildDotnetModule
7 runCommand,
8}:
9
10let
11 inherit (lib)
12 mapAttrs
13 ;
14
15 inherit (buildPackages)
16 emptyDirectory
17 buildDotnetModule
18 ;
19
20in
21mapAttrs
22 (
23 name: nugetDeps:
24 buildDotnetModule {
25 name = "nuget-deps-${name}";
26 unpackPhase = ''
27 runHook preUnpack
28
29 mkdir test
30 cd test
31 dotnet new console -o .
32 ls -l
33
34 runHook postUnpack
35 '';
36 inherit nugetDeps;
37 }
38 )
39 {
40 "null" = null;
41 "nix-file" = ./nuget-deps.nix;
42 "json-file" = ./nuget-deps.json;
43 "derivation" = emptyDirectory;
44 "list" = [ emptyDirectory ];
45 }