DotNET: Difference between revisions
imported>Mdarocha Fixup old link |
imported>Basil m Fixed a typo |
||
Line 33: | Line 33: | ||
Note that the above package will not build the first time. After adding the above definition to `all-packages.nix`, you | Note that the above package will not build the first time. After adding the above definition to `all-packages.nix`, you | ||
can run the package-specific `fetch-deps` script, which will generate a file containing all the nuget dependencies of the | can run the package-specific `fetch-deps` script, which will generate a file containing all the nuget dependencies of the | ||
package. Build the script with <code>nix-build -A some-package.fetch-deps</code>, copy that generated file (the location will be printed by the script) and set the <code>nugetDeps</ | package. Build the script with <code>nix-build -A some-package.fetch-deps</code>, copy that generated file (the location will be printed by the script) and set the <code>nugetDeps</code> attribute in <code>buildDotnetModule</code> to point to that generated file (ie. <code>nugetDeps = ./deps.nix</code>). | ||
After that the package will build normally. Remember to re-run <code>fetch-deps</code> every time the package is updated. | After that the package will build normally. Remember to re-run <code>fetch-deps</code> every time the package is updated. |