···112 if (nugetDeps != null) then
113 if lib.isDerivation nugetDeps
114 then nugetDeps
115- else mkNugetDeps { inherit name; nugetDeps = import nugetDeps; }
0000116 else throw "Defining the `nugetDeps` attribute is required, as to lock the NuGet dependencies. This file can be generated by running the `passthru.fetch-deps` script.";
117118 # contains the actual package dependencies
···138 name = "${name}-nuget-source";
139 paths = [ dependenciesSource sdkSource ];
140 };
00141in
142stdenvNoCC.mkDerivation (args // {
143 nativeBuildInputs = args.nativeBuildInputs or [ ] ++ [
···180 # Note that toString is necessary here as it results in the path at
181 # eval time (i.e. to the file in your local Nixpkgs checkout) rather
182 # than the Nix store path of the path after it's been imported.
183- if lib.isPath nugetDeps && !lib.hasPrefix "${builtins.storeDir}/" (toString nugetDeps)
184- then toString nugetDeps
185 else ''$(mktemp -t "${pname}-deps-XXXXXX.nix")'';
186 in
187 writeShellScript "fetch-${pname}-deps" ''
···112 if (nugetDeps != null) then
113 if lib.isDerivation nugetDeps
114 then nugetDeps
115+ else mkNugetDeps {
116+ inherit name;
117+ nugetDeps = import nugetDeps;
118+ sourceFile = nugetDeps;
119+ }
120 else throw "Defining the `nugetDeps` attribute is required, as to lock the NuGet dependencies. This file can be generated by running the `passthru.fetch-deps` script.";
121122 # contains the actual package dependencies
···142 name = "${name}-nuget-source";
143 paths = [ dependenciesSource sdkSource ];
144 };
145+146+ nugetDepsFile = _nugetDeps.sourceFile;
147in
148stdenvNoCC.mkDerivation (args // {
149 nativeBuildInputs = args.nativeBuildInputs or [ ] ++ [
···186 # Note that toString is necessary here as it results in the path at
187 # eval time (i.e. to the file in your local Nixpkgs checkout) rather
188 # than the Nix store path of the path after it's been imported.
189+ if lib.isPath nugetDepsFile && !lib.hasPrefix "${builtins.storeDir}/" (toString nugetDepsFile)
190+ then toString nugetDepsFile
191 else ''$(mktemp -t "${pname}-deps-XXXXXX.nix")'';
192 in
193 writeShellScript "fetch-${pname}-deps" ''