aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/expressions
AgeCommit message (Collapse)Author
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.
2017-05-29Merge pull request #1393 from pyrtsa/patch-1Eelco Dolstra
Fix variable name typo in derivations doc
2017-05-28Remove stray `>` in builtins docPyry Jahkola
2017-05-28Fix variable name typo in derivations docPyry Jahkola
2017-05-24Merge pull request #1382 from FRidh/patch-1Eelco Dolstra
Document fetchTarball can take a sha256
2017-05-17Document that builtins.match takes a POSIX extended REEelco Dolstra
2017-05-11Document fetchTarball can take a sha256Frederik Rietdijk
Note that I refer to `nix-prefetch-url`.
2017-05-10TypoEelco Dolstra
2017-05-10doc: builtins.attrNames returns alphabetically sorted listDomen Kožar
2017-04-17Manual: document tryEvalLinus Heckemann
2017-02-21Fix XML validityEelco Dolstra
2017-02-20Document toString betterLinus Heckemann
2016-12-11Document path-search behaviourLinus Heckemann
2016-12-09Document builtins.match, fixes #1145Domen Kožar
2016-09-21Document the { __toString } interfacezimbatm
2016-08-26doc: move set functor para to Sets sectionDomen Kožar
2016-08-11doc: add an example for builtins.substringDomen Kožar
2016-08-10s/powerpc-darwin/x86_64-darwin/Domen Kožar
Let's step in line with time and document more realistic values.
2016-05-30Merge pull request #576 from qknight/args_explanationDomen Kožar
extended args@ explanation
2016-05-30Update language-constructs.xmlJoachim Schiele
2016-05-30Update language-constructs.xmlJoachim Schiele
2016-04-26fix "nix-build" examplesScott R. Parish
The existing "nix-build" examples were failing: error: cannot auto-call a function that has an argument without a default value (‘system’) Thanks to @groxxda on irc for pointing out the fix! Updated to completely remove unneeded path argument, suggested by @joachifm Updated to remove other occurences of `all-packages.nix` from files as suggested by @domenkozar
2016-02-12Merge pull request #762 from ctheune/ctheune-floatsEelco Dolstra
Implement floats
2016-01-06Update documentation for floats.Christian Theune
2016-01-05manual: document builtins.functionArgsVladimír Čunát
The text is just a conversion of comment from src/libexpr/primops.cc
2015-09-01Fix readDir exampleEelco Dolstra
Fixes https://github.com/NixOS/nixos-homepage/issues/46.
2015-07-28Add sort primopEelco Dolstra
2015-07-28Add primop genListEelco Dolstra
This can be used to implement functions like ‘imap’ (or for that matter, ‘map’) without the quadratic complexity incurred by calling ‘++’ repeatedly.
2015-07-24Add replaceStrings primopEelco Dolstra
This is a generalisation of replaceChars in Nixpkgs.
2015-07-23Add primops all and anyEelco Dolstra
These are used thousands of times during NixOS evaluation, so it's useful to speed them up.
2015-07-23Add foldl' primopEelco Dolstra
2015-07-07extended args@ explanationJoachim Schiele