Fetchers
fetchUrl
Fetch a file from the specified URL.
Types:
- fetchUrl (
function { ... } -> package):- url (
str): URL to download. - sha256 (
str): SHA256 of the expected output, In order to get the SHA256 you can omit this parameter and execute Makes, Makes will tell you the correct SHA256 on failure.
- url (
Example:
fetchArchive
Fetch a Zip (.zip) or Tape Archive (.tar) from the specified URL and unpack it.
Types:
- fetchArchive (
function { ... } -> package):- url (
str): URL to download. - sha256 (
str): SHA256 of the expected output, In order to get the SHA256 you can omit this parameter and execute Makes, Makes will tell you the correct SHA256 on failure. - stripRoot (
bool): Optional. Most archives have a symbolic top-level directory that is discarded during unpack phase. If this is not the case you can set this flag tofalse. Defaults totrue.
- url (
Example:
fetchNixpkgs
Fetch a commit from the Nixpkgs repository.
Warning
By default all licenses in the Nixpkgs repository are accepted. Options to decline individual licenses are provided below.
Types:
- fetchNixpkgs (
function { ... } -> anything):- rev (
str): Commit, branch or tag to fetch. - allowUnfree (
bool): Optional. Allow software that do not respect the freedom of its users. Defaults totrue. - acceptAndroidSdkLicense (
bool): Optional. Accept the Android SDK license. Defaults totrue. - overalys (
listOf overlayType): Optional. Overlays to apply to the Nixpkgs set. Defaults to[ ]. - sha256 (
str): SHA256 of the expected output, In order to get the SHA256 you can omit this parameter and execute Makes, Makes will tell you the correct SHA256 on failure.
- rev (
Example:
fetchRubyGem
Fetch a Ruby gem from RubyGems.
Types:
- fetchRubyGem (
function { ... } -> package):- sha256 (
str): SHA256 of the expected output, In order to get the SHA256 you can omit this parameter and execute Makes, Makes will tell you the correct SHA256 on failure. - url (
str): url of the gem to download.
- sha256 (
Example: