| Commit message (Collapse) | Author | Age |
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
lib.strings: add `replicate`
|
| |
| |
| |
| |
| |
| |
| | |
`strings.replicate` returns n copies of a string, concatenated into a new
string
Co-authored-by: Silvan Mosberger <github@infinisil.com>
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | | |
I didn't add these arguments, so these comments are from my understading of the arguments.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We have several cross-compilation bugs that show up if
hostPlatform!=buildPlatform yet
hostPlatform.config==buildPlatform.config.
These bugs have appeared and disappeared as we've fiddled with the
definition of equality for platform objects. This commit adds a
clear-cut case where they are *not* equal and never will be, so we
can test it.
|
|\ \ \
| | | |
| | | | |
lib.fileset: Add an additional argument in the design docs
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
lib.filesystem: Don't test Nix-specific error messages
|
| | | |
| | | |
| | | |
| | | |
| | | | |
In https://github.com/NixOS/nix/pull/9269 the error messages change
which would've broken this test.
|
|\ \ \ \
| |/ / /
|/| | | |
`lib.fileset.difference`: init
|
| | | | |
|
| | | |
| | | |
| | | | |
Corrects a minor typo in the description of `fix`; namely that `fix` allows factoring out syntactic recursion from another function.
|
|\ \ \ \
| | | | |
| | | | | |
lib.getExe': check arguments
|
| | | | | |
|
| | |_|/
| |/| | |
|
|\ \ \ \
| |_|_|/
|/| | | |
`lib.fileset.toSource`: Improve error for unknown file types
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Compared to the parent commit, this removes any detectable performance
cost :)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This does decrease performance unfortunately
Benchmarking expression toSource { root = ./.; fileset = ./.; }
Mean CPU time 0.103747 (σ = 0.012415) for 10 runs is 97.32181384964636% (σ = 16.34179537413021%) of the old value 0.106602 (σ = 0.0125571)
Statistic .envs.elements (205920) is 105.5842% (+10891) of the old value 195029
Statistic .gc.totalBytes (20247696) is 101.7495% (+348160) of the old value 19899536
Statistic .nrThunks (134824) is 108.7878% (+10891) of the old value 123933
Statistic .symbols.number (996) is 100.1005% (+1) of the old value 995
Statistic .values.number (275238) is 104.1199% (+10891) of the old value 264347
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Currently just throws the Nix error because unknown file types are not
supported by the Nix store, but nothing catches this error earlier (yet,
see next commit)
|
| | |/
| |/| |
|
|\ \ \
| |/ /
|/| | |
lib/systems/parse.nix: add removeAbiSuffix, use it
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
gnu-config will ignore the portion of a triple matching the regex
`e?abi.*$` when determining the validity of a triple. In other
words, `i386-linuxabichickenlips` is a valid triple.
This commit updates our parsing routines to match gnu-config.
I was recently surprised to discover that it is in fact possible to
shoehorn ABI flavors into nix doubles in a way which preserves their
property of being a (non-canonical) subset of the valid gnu-config
triples. This commit is required in order to exploit that discovery
to add automatic detection of ILP32 platforms (64-bit void*, 32-bit
int, like the Apple Watch and MIPS n32) to Nix.
|
|\ \ \
| | | |
| | | | |
`lib.fileset.fileFilter`: init
|
| |/ / |
|
| | |
| | |
| | |
| | | |
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
|
|/ /
| |
| |
| |
| |
| | |
Add the "Type:" blocks.
Move the examples below the descriptions whenever possibles
Add "Example:" tags before the examples moved below the descriptions.
|
|\ \
| | |
| | | |
lib/options: mkPackageOption: document better, add pkgsText and usePname options, refactor
|
| | | |
|
| | |
| | |
| | |
| | | |
mkPackageOption
|
| | | |
|
| | | |
|
| | | |
|
| |/
|/| |
|
|\ \
| | |
| | |
| | |
| | | |
hercules-ci/fix-functionArgs-after-makeOverridable
lib.makeOverridable: fix functionArgs on returned function
|
| | | |
|
|\ \ \
| | | |
| | | | |
lib.fix: Improve doc
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Done together in and after the docs team meeting
Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The original doc did not help with understanding at all, and the
wikipedia link was actively harmful.
|
|\ \ \ \
| |_|/ /
|/| | | |
`lib.fileset.intersection`: init
|
| | | |
| | | |
| | | |
| | | | |
Co-authored-by: Robert Hensing <robert@roberthensing.nl>
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
lib.attrsets.attrsToList: add function
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
For transforming back between lists and attrsets, it makes sense to have
a quasi-inverse of `builtins.listToAttrs` available as a library
function.
Co-authored-by: Silvan Mosberger <github@infinisil.com>
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
|