Building ancient nixpkgs: Difference between revisions
imported>Nix m recategorize |
imported>Rapenne-s Mentions nix-prefetch-url to download tarballs |
||
| Line 17: | Line 17: | ||
<code>nix-build</code> may fail while trying to fetch a package from a 3rd-party mirror. | <code>nix-build</code> may fail while trying to fetch a package from a 3rd-party mirror. | ||
If this happens, you will need to search the internet for another mirror from which you can fetch the package; for certain nixpkgs versions you will need to ensure it does not force-redirect to SSL as <code>curl</code> was not built with SSL support in early versions. | If this happens, you will need to search the internet for another mirror from which you can fetch the package; for certain nixpkgs versions you will need to ensure it does not force-redirect to SSL as <code>curl</code> was not built with SSL support in early versions. | ||
You can manually add a tarball to the store by using <code>nix-prefetch-url</code>. You have to use the same checksum algorithm used in the nixpkgs definition with the <code>--type</code> parameter. | |||
[[Category:Cookbook]] | [[Category:Cookbook]] | ||