summaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Expand)AuthorAgeFilesLines
* Merge remote-tracking branch 'upstream/master' into mingw-mcfthreadsJohn Ericson2019-11-1110-30/+133
|\
| * Merge pull request #72727 from oxalica/mips-parse•••lib.systems: handle mips family properlyMatthew Bauer2019-11-062-0/+2
| |\
| | * lib.systems: remove redundant mappingoxalica2019-11-041-4/+0
| | * lib.systems: handle mips family properlyoxalica2019-11-032-0/+6
| * | Add note: Keep error message in sync with nixos-optionChuck2019-11-041-0/+2
| |/
| * Merge pull request #67809 from Infinisil/propagate-override-args•••lib.makeOverridable: Propagate function argumentsSilvan Mosberger2019-10-221-14/+23
| |\
| | * lib/makeOverridable: Refactor•••- Rename ff to result because that's what it is - Better indentation - Less parens - Comment what overrideWith does Silvan Mosberger2019-09-051-11/+14
| | * lib/makeOverridable: Remove unimplemented overrideDerivation for functions•••- Apparently nobody ever needed this - We already have enough ways to override things - Using overrideDerivation is discouraged Silvan Mosberger2019-09-051-1/+0
| | * lib/makeOverridable: Propagate function args of the callPackage'd function•••This allows querying function arguments of things like fetchFromGitHub: nix-repl> lib.functionArgs pkgs.fetchFromGitHub { fetchSubmodules = true; githubBase = true; ... } Silvan Mosberger2019-09-051-5/+6
| | * lib/makeOverridable: Propagate function arguments to override functions•••This allows querying the arguments you can .override: nix-repl> lib.functionArgs pkgs.hello.override { fetchurl = false; stdenv = false; } Silvan Mosberger2019-09-051-2/+4
| | * lib/makeOverridable: Abstract result overridingSilvan Mosberger2019-09-051-3/+4
| | * lib/makeOverridable: Deduplicate override definition•••And call it overrideArgs in the let binding because that's what it does Silvan Mosberger2019-09-051-2/+5
| * | lib/trivial: add `pipe` function•••`pipe` is a useful operator for creating pipelines of functions. It works around the usual problem of e.g. string operations becoming deeply nested functions. In principle, there are four different ways this function could be written: pipe val [ f1 .. fn ] pipe val [ fn .. f1 ] compose [ f1 .. fn ] val compose [ fn .. f1 ] val The third and fourth form mirror composition of functions, they would be the same as e.g. `(f1 << f2 << f3 .. << fn) val`. However, it is not clear which direction the list should have (as one can see in the second form, which is the most absurd. In order not to confuse users, we decide for the most “intuitive” form, which mirrors the way unix pipes work (thus the name `pipe`). The flow of data goes from left to right. Co-Authored-By: Silvan Mosberger <infinisil@icloud.com> Profpatsch2019-10-213-2/+64
| * | Merge pull request #69746 from Infinisil/rem-opt-usage-message•••lib.mkRemovedOptionModule: Show replacement for option usage tooSilvan Mosberger2019-10-021-0/+1
| |\ \
| | * | lib.mkRemovedOptionModule: Show replacement for option usage too•••Previously mkRemovedOptionModule would only show the replacement instructions when the removed option was *defined*. With this change, it also does so when an option is *used*. This is essential for options that are only intended to be used such as `security.acme.directory`, whose replacement instructions would never trigger without this change because almost everybody only uses the option and isn't defining it. Silvan Mosberger2019-09-281-0/+1
| * | | Merge pull request #70194 from obsidiansystems/lib-more-arm•••lib: Add armv7a-linux to doubles.nixMatthew Bauer2019-10-012-3/+3
| |\ \ \
| * \ \ \ mkRemovedOptionModule: assert on removed options (#69419)•••mkRemovedOptionModule: assert on removed optionsSilvan Mosberger2019-09-301-4/+7
| |\ \ \ \ | | |_|/ / | |/| | |
| | * | | mkRemovedOptionModule: assert on removed options•••We don't want to ignore config that can mess up machines. In general this should always fail evaluation, as you think you are changing behaviour and don't, which can easily create run-time errors we can catch early. Robin Gloster2019-09-301-4/+7
| * | | | Merge pull request #69345 from joachifm/feat/split-version•••Replace uses of splitString for splitting version stringsJoachim F2019-09-273-5/+24
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | lib: basic tests for lib.versionsJoachim Fasting2019-09-261-0/+15
| | * | | lib/versions: expose splitVersionJoachim Fasting2019-09-262-5/+9
| * | | | licenses: refer to curl using spdxOrivej Desh2019-09-221-3/+3
| * | | | qhull: specify spdx licenseOrivej Desh2019-09-221-0/+5
| |/ / /
| * | | lib: fix typo in 'zipAttrsWith' documentationPeter Simons2019-09-111-1/+1
| * | | 20.03 is Markhor•••* Markhor is a spiral horned animal that is on the endangered species list * https://en.wikipedia.org/wiki/Markhor Samuel Leathers2019-09-091-1/+1
* | | | lib: Switch to w64 vendor for MinGW•••It is needed for the `-municode` flag, supposedly. John Ericson2019-11-112-2/+5
| |/ / |/| |
* | | lib: Add armv7a-linux to doubles.nix•••This is needed for android. John Ericson2019-10-012-3/+3
|/ /
* | Merge master into staging-nextFrederik Rietdijk2019-09-062-5/+34
|\ \
| * \ Merge pull request #67996 from roberth/cleanSourceWith-name•••lib.cleanSourceWith: Allow name to be set, optional filter, docSilvan Mosberger2019-09-061-4/+33
| |\ \
| | * | lib.cleanSourceWith: Allow name to be set, optional filter, doc•••This change is API-compatible and hash-compatible with the previous version. At first I considered to write a rename function too, but adding it name to cleanSourceWith was a no-brainer for ease of use. It turns out that a rename function isn't any more useful than cleanSourceWith. To avoid having to write the identity predicate when renaming, the filter is now optional. builtins.path is supported since Nix 2.0 which is required by nixpkgs Robert Hensing2019-09-031-4/+33
| * | | Fix typo in lists.nixRobert Hensing2019-09-061-1/+1
| |/ /
* | | Merge branch 'master' into stagingVladimír Čunát2019-09-025-4/+17
|\| |
| * | Fix typo in customisation.nixGabriel Féron2019-09-021-1/+1
| * | Merge remote-tracking branch 'upstream/master' into js-unknown-ghcjsJohn Ericson2019-09-0225-176/+338
| |\ \
| | * \ Merge lib sort into feature/js-unknown-ghcjsJohn Ericson2019-09-021-3/+3
| | |\ \
| | * \ \ Merge remote-tracking branch 'upstream/master' into feature/js-unknown-ghcjsJohn Ericson2019-09-0225-176/+338
| | |\ \ \
| | | * | | lib/types: Make usage of types.string emit a warningSilvan Mosberger2019-08-311-1/+2
| | | | |/ | | | |/|
| * | | | lib: Further clean up systems listJohn Ericson2019-09-021-3/+3
| | |_|/ | |/| |
| * | | lib: Sort platform predicatesJohn Ericson2019-09-021-2/+2
| |/ /
| * | Add support for `js-unknown-ghcjs`•••This adds enough logic to nixpkgs to support the `js-unknown-ghcjs` triple. Moritz Angermann2019-09-023-4/+17
* | | Merge staging-next into stagingFrederik Rietdijk2019-08-311-10/+8
|\ \ \ | | |/ | |/|
| * | Merge pull request #66407 from Infinisil/fix-option-rename•••lib/modules: Use options `apply` function even if no values are definedSilvan Mosberger2019-08-271-10/+8
| |\ \
| | * | lib/modules: Use options `apply` function even if no values are defined•••This allows `apply` functions to return a valid value if they completely ignore their argument, which is the case for the option renaming functions like `mkAliasOptionModule`. Therefore this solves issue #63693 Silvan Mosberger2019-08-101-10/+8
* | | | treewide: remove redundant recvolth2019-08-288-18/+18
* | | | Merge staging-next into stagingFrederik Rietdijk2019-08-283-2/+15
|\| | |
| * | | lib/options: fix path in commentJan Tojnar2019-08-261-1/+1
| * | | Merge branch 'master' into flip-map-foreachdanbst2019-08-184-0/+30
| |\ \ \
| * | | | and one more placedanbst2019-08-051-1/+1
| * | | | Merge branch 'master' into flip-map-foreachDanylo Hlynskyi2019-08-054-12/+28
| |\ \ \ \ | | | |/ / | | |/| |
| * | | | rename foreach -> forEachdanbst2019-08-051-3/+3