| Commit message (Expand) | Author | Age | Files | Lines |
| * | Merge remote-tracking branch 'upstream/master' into mingw-mcfthreads | John Ericson | 2019-11-11 | 10 | -30/+133 |
| |\ |
|
| | * | Merge pull request #72727 from oxalica/mips-parse•••lib.systems: handle mips family properly | Matthew Bauer | 2019-11-06 | 2 | -0/+2 |
| | |\ |
|
| | | * | lib.systems: remove redundant mapping | oxalica | 2019-11-04 | 1 | -4/+0 |
| | | * | lib.systems: handle mips family properly | oxalica | 2019-11-03 | 2 | -0/+6 |
| | * | | Add note: Keep error message in sync with nixos-option | Chuck | 2019-11-04 | 1 | -0/+2 |
| | |/ |
|
| | * | Merge pull request #67809 from Infinisil/propagate-override-args•••lib.makeOverridable: Propagate function arguments | Silvan Mosberger | 2019-10-22 | 1 | -14/+23 |
| | |\ |
|
| | | * | lib/makeOverridable: Refactor•••- Rename ff to result because that's what it is
- Better indentation
- Less parens
- Comment what overrideWith does
| Silvan Mosberger | 2019-09-05 | 1 | -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 Mosberger | 2019-09-05 | 1 | -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 Mosberger | 2019-09-05 | 1 | -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 Mosberger | 2019-09-05 | 1 | -2/+4 |
| | | * | lib/makeOverridable: Abstract result overriding | Silvan Mosberger | 2019-09-05 | 1 | -3/+4 |
| | | * | lib/makeOverridable: Deduplicate override definition•••And call it overrideArgs in the let binding because that's what it does
| Silvan Mosberger | 2019-09-05 | 1 | -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>
| Profpatsch | 2019-10-21 | 3 | -2/+64 |
| | * | | Merge pull request #69746 from Infinisil/rem-opt-usage-message•••lib.mkRemovedOptionModule: Show replacement for option usage too | Silvan Mosberger | 2019-10-02 | 1 | -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 Mosberger | 2019-09-28 | 1 | -0/+1 |
| | * | | | Merge pull request #70194 from obsidiansystems/lib-more-arm•••lib: Add armv7a-linux to doubles.nix | Matthew Bauer | 2019-10-01 | 2 | -3/+3 |
| | |\ \ \ |
|
| | * \ \ \ | mkRemovedOptionModule: assert on removed options (#69419)•••mkRemovedOptionModule: assert on removed options | Silvan Mosberger | 2019-09-30 | 1 | -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 Gloster | 2019-09-30 | 1 | -4/+7 |
| | * | | | | Merge pull request #69345 from joachifm/feat/split-version•••Replace uses of splitString for splitting version strings | Joachim F | 2019-09-27 | 3 | -5/+24 |
| | |\ \ \ \
| | |/ / /
| |/| | | |
|
| | | * | | | lib: basic tests for lib.versions | Joachim Fasting | 2019-09-26 | 1 | -0/+15 |
| | | * | | | lib/versions: expose splitVersion | Joachim Fasting | 2019-09-26 | 2 | -5/+9 |
| | * | | | | licenses: refer to curl using spdx | Orivej Desh | 2019-09-22 | 1 | -3/+3 |
| | * | | | | qhull: specify spdx license | Orivej Desh | 2019-09-22 | 1 | -0/+5 |
| | |/ / / |
|
| | * | | | lib: fix typo in 'zipAttrsWith' documentation | Peter Simons | 2019-09-11 | 1 | -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 Leathers | 2019-09-09 | 1 | -1/+1 |
| * | | | | lib: Switch to w64 vendor for MinGW•••It is needed for the `-municode` flag, supposedly.
| John Ericson | 2019-11-11 | 2 | -2/+5 |
| | |/ /
|/| | |
|
| * | | | lib: Add armv7a-linux to doubles.nix•••This is needed for android.
| John Ericson | 2019-10-01 | 2 | -3/+3 |
| |/ / |
|
| * | | Merge master into staging-next | Frederik Rietdijk | 2019-09-06 | 2 | -5/+34 |
| |\ \ |
|
| | * \ | Merge pull request #67996 from roberth/cleanSourceWith-name•••lib.cleanSourceWith: Allow name to be set, optional filter, doc | Silvan Mosberger | 2019-09-06 | 1 | -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 Hensing | 2019-09-03 | 1 | -4/+33 |
| | * | | | Fix typo in lists.nix | Robert Hensing | 2019-09-06 | 1 | -1/+1 |
| | |/ / |
|
| * | | | Merge branch 'master' into staging | Vladimír Čunát | 2019-09-02 | 5 | -4/+17 |
| |\| | |
|
| | * | | Fix typo in customisation.nix | Gabriel Féron | 2019-09-02 | 1 | -1/+1 |
| | * | | Merge remote-tracking branch 'upstream/master' into js-unknown-ghcjs | John Ericson | 2019-09-02 | 25 | -176/+338 |
| | |\ \ |
|
| | | * \ | Merge lib sort into feature/js-unknown-ghcjs | John Ericson | 2019-09-02 | 1 | -3/+3 |
| | | |\ \ |
|
| | | * \ \ | Merge remote-tracking branch 'upstream/master' into feature/js-unknown-ghcjs | John Ericson | 2019-09-02 | 25 | -176/+338 |
| | | |\ \ \ |
|
| | | | * | | | lib/types: Make usage of types.string emit a warning | Silvan Mosberger | 2019-08-31 | 1 | -1/+2 |
| | | | | |/
| | | |/| |
|
| | * | | | | lib: Further clean up systems list | John Ericson | 2019-09-02 | 1 | -3/+3 |
| | | |_|/
| |/| | |
|
| | * | | | lib: Sort platform predicates | John Ericson | 2019-09-02 | 1 | -2/+2 |
| | |/ / |
|
| | * | | Add support for `js-unknown-ghcjs`•••This adds enough logic to nixpkgs to support the `js-unknown-ghcjs` triple.
| Moritz Angermann | 2019-09-02 | 3 | -4/+17 |
| * | | | Merge staging-next into staging | Frederik Rietdijk | 2019-08-31 | 1 | -10/+8 |
| |\ \ \
| | |/
| |/| |
|
| | * | | Merge pull request #66407 from Infinisil/fix-option-rename•••lib/modules: Use options `apply` function even if no values are defined | Silvan Mosberger | 2019-08-27 | 1 | -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 Mosberger | 2019-08-10 | 1 | -10/+8 |
| * | | | | treewide: remove redundant rec | volth | 2019-08-28 | 8 | -18/+18 |
| * | | | | Merge staging-next into staging | Frederik Rietdijk | 2019-08-28 | 3 | -2/+15 |
| |\| | | |
|
| | * | | | lib/options: fix path in comment | Jan Tojnar | 2019-08-26 | 1 | -1/+1 |
| | * | | | Merge branch 'master' into flip-map-foreach | danbst | 2019-08-18 | 4 | -0/+30 |
| | |\ \ \ |
|
| | * | | | | and one more place | danbst | 2019-08-05 | 1 | -1/+1 |
| | * | | | | Merge branch 'master' into flip-map-foreach | Danylo Hlynskyi | 2019-08-05 | 4 | -12/+28 |
| | |\ \ \ \
| | | |/ /
| | |/| | |
|
| | * | | | | rename foreach -> forEach | danbst | 2019-08-05 | 1 | -3/+3 |