aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/expressions
AgeCommit message (Collapse)Author
2019-07-06Merge pull request #2882 from grahamc/docs/1115-tarball-ttlEelco Dolstra
tarball-ttl: document
2019-07-05tarball-ttl: documentGraham Christensen
Incorporates text from Niklas Hambüchen in #2978 Closes #1115
2019-07-02Merge pull request #2582 from LnL7/fetchgit-refsEelco Dolstra
fetchGit: allow fetching explicit refs
2019-07-02builtins.fetchGit: document absolute ref supportGraham Christensen
2019-06-04Minor typoJorisE
2019-05-21doc: clarify that optional attrs in a function argument will be ignored ↵Maximilian Bosch
unless specified In `args@{ a ? 1 }: /* ... */` the value `a` won't be a part of `args` unless it's specified when calling the function, the default value will be ignored in this case. My personal point of view is that this behavior is a matter of taste, at least I was pretty sure that unmatched arguments will be a part of `args@` while debugging some Nix code last week. I decided to add a warning to the docs which hopefully reduces the confusion of further Nix developers who thought the same about `args@`.
2019-05-03Add builtins.hashFileDaniel Schaefer
For text files it is possible to do it like so: `builtins.hashString "sha256" (builtins.readFile /tmp/a)` but that doesn't work for binary files. With builtins.hashFile any kind of file can be conveniently hashed.
2019-03-24Add isPath primopzimbatm
this is added for completeness' sake since all the other possible `builtins.typeOf` results have a corresponding `builtins.is<Type>`
2019-03-21manual: include builtins.* for globally available builtinsLinus Heckemann
This improves searchability.
2019-03-01manual nitpick: document sha512 support in hashStringVladimír Čunát
2018-11-13manual: quote $servletsFelix C. Stegerman
2018-11-12fix typo (s/gift/git/)Felix C. Stegerman
2018-11-09Manual: build locally -> buildEelco Dolstra
2018-11-08Fix manual buildLinus Heckemann
This was broken by some missing closing tags in 0bea4a50e03
2018-11-08Merge pull request #2524 from domenkozar/deprecate-toPathEelco Dolstra
Deprecate builtins.toPath
2018-11-08Deprecate builtins.toPathDomen Kožar
2018-11-07Document allowSubstitutesEelco Dolstra
2018-11-07Fix preferLocalBuild descriptionEelco Dolstra
preferLocalBuild does not in fact prevent substitution.
2018-10-04Docs: update fixed output hashesBenjamin Hipple
`fetchurl` will now throw if given an `md5`, and the hashes have generally been upgraded to avoid it and use `sha256` as a default. This updates the documentation examples in the manual accordingly.
2018-10-02manual: add XML IDs to all builtin list entriesProfpatsch
2018-09-01Merge pull request #2309 from symphorien/disallowed-manEelco Dolstra
add manual entries for disallowedRequisites and disallowedReferences
2018-09-01Merge pull request #2384 from graham-at-target/fetch-git-examplesEelco Dolstra
docs: Add some examples to fetchGit
2018-08-31Drop ssh://... as a required formatting for builtins.fetchGitGraham Christensen
2018-08-31docs: Add IDs to important sectionsGraham Christensen
2018-08-31docs: Add some examples to fetchGitGraham Christensen
2018-07-26add manual entries for disallowedRequisites and disallowedReferencesSymphorien Gibol
2018-06-10manual: builtins.fromJSON: remove the claim that floats are not allowedMichael Raskin
floating-point numbers are supported now, including the fromJSON builtin. Reported on IRC by inquisitiv3
2018-05-30Explicitly describe the effects of filterSource excluding a directory.Shea Levy
2018-05-30Merge pull request #2164 from mickours/doc-fetchTarball-timoutGraham Christensen
Explain fetchTarball timeout behavior in the doc
2018-05-30Explain fetchTarball timeout behavior in the docMichael Mercier
2018-05-24add docs and testsvolth
2018-05-02docs: mention source of env variables used by `impureEnvVars`.Gleb Peregud
2018-04-03document that writeTextFile from Nixpkgs is an alternative to builtins.toFileJustin Humm
2018-03-23Document fetchGit.Shea Levy
Fixes #1981.
2018-02-14Add splitVersion primop.Shea Levy
Fixes #1868.
2018-02-07Merge pull request #1816 from shlevy/add-pathEelco Dolstra
Add path primop.
2018-02-06Add path primop.Shea Levy
builtins.path allows specifying the name of a path (which makes paths with store-illegal names now addable), allows adding paths with flat instead of recursive hashes, allows specifying a filter (so is a generalization of filterSource), and allows specifying an expected hash (enabling safe path adding in pure mode).
2018-01-31Manual: Remove old cruftEelco Dolstra
2018-01-27Improve manual on inheriting attributesEric Wolf
Expands first paragraph a bit Adds a more comprehensive example
2017-12-11Add builtins.concatStringSep to the manualChris Martin
2017-11-01Mention isFloat function in "Built-in Functions" sectionZoran Plesivčak
2017-11-01Mention "float" type in builtins.typeOf section of the docsZoran Plesivčak
+ remove trailing whitespace from the file
2017-10-26Clarify indented string escaping rulesOrivej Desh
2017-10-26Describe "with" scoping precedenceOrivej Desh
2017-10-26Describe arithmetic operatorsOrivej Desh
2017-08-18update MD5 to SHA-256 in expression-syntaxChase Adams
2017-08-16Merge branch 'tokenize' of https://github.com/nbp/nixEelco Dolstra
2017-08-15Add builtins.string function.Nicolas B. Pierron
The function 'builtins.split' takes a POSIX extended regular expression and an arbitrary string. It returns a list of non-matching substring interleaved by lists of matched groups of the regular expression. ```nix with builtins; assert split "(a)b" "abc" == [ "" [ "a" ] "c" ]; assert split "([ac])" "abc" == [ "" [ "a" ] "b" [ "c" ] "" ]; assert split "(a)|(c)" "abc" == [ "" [ "a" null ] "b" [ null "c" ] "" ]; assert split "([[:upper:]]+)" " FOO " == [ " " [ "FOO" ] " " ]; ```
2017-08-15Move builtins.match documentation between map and mul.Nicolas B. Pierron
2017-07-15use sha256 hashes in the examplesHarmen
And fix a dead link.