about summary refs log tree commit diff
path: root/tests/filter-source.sh (follow)
AgeCommit message (Collapse)AuthorFilesLines
2007-01-29 New primitives:Eelco Dolstra1-0/+5
* `sub' to subtract two numbers. * `stringLength' to get the length of a string. * `substring' to get a substring of a string. These should be enough to allow most string operations to be expressed.
2007-01-15 * builtins.filterSource: pass the type of the file ("regular",Eelco Dolstra1-0/+2
"directory", "symlink") as the second argument to the filter predicate.
2006-12-12 * New primop builtins.filterSource, which can be used to filter filesEelco Dolstra1-0/+13
from a source directory. All files for which a predicate function returns true are copied to the store. Typical example is to leave out the .svn directory: stdenv.mkDerivation { ... src = builtins.filterSource (path: baseNameOf (toString path) != ".svn") ./source-dir; # as opposed to # src = ./source-dir; } This is important because the .svn directory influences the hash in a rather unpredictable and variable way.