nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 33 lines 677 B view raw
1{ 2 symlinkJoin, 3 lib, 4 fetchNupkg, 5}: 6lib.makeOverridable ( 7 { 8 name, 9 nugetDeps ? null, 10 sourceFile ? null, 11 installable ? false, 12 }: 13 (symlinkJoin { 14 name = "${name}-nuget-deps"; 15 paths = 16 let 17 loadDeps = 18 if nugetDeps != null then 19 nugetDeps 20 else if lib.hasSuffix ".nix" sourceFile then 21 assert (lib.isPath sourceFile); 22 import sourceFile 23 else 24 { fetchNuGet }: builtins.map fetchNuGet (lib.importJSON sourceFile); 25 in 26 loadDeps { 27 fetchNuGet = args: fetchNupkg (args // { inherit installable; }); 28 }; 29 }) 30 // { 31 inherit sourceFile; 32 } 33)