summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2018-05-17Merge pull request #40659 from bkchr/androidndkJohn Ericson
Androidndk
2018-05-17androidndk: Fix usage as crossSystemBastian Köcher
2018-05-16doc: Fixes documented default option for `<name>` for submodules. (#40464)Samuel Dionne-Riel
Fixes #40463 This is related to change 1d56d0c8a79334cd7149fd580512046558eaac78
2018-05-14Merge pull request #34805 from rycee/fix/dorenameMatthew Justin Bauer
lib: make use of visible variable in doRename
2018-05-12Merge pull request #39447 from oxij/nixos/warn-missing-stateversionMatthew Justin Bauer
nixos: warn on missing `stateVersion`
2018-05-12lib: modules: propagate `highestPrio`Jan Malakhovski
Yeah, it's ugly. But it's the minimal change that doesn't break anything else.
2018-05-12Merge branch 'fix-gcc-with-float'John Ericson
2018-05-12lib: Fix float handling for Aarch32John Ericson
Forgot to adjust default so abi with explicit float attr would be used.
2018-05-12prebuilt android cc: Edit wrapper to pass the right -m flags for armv7aJohn Ericson
(cherry picked from commit 827ef0914089e1a2bba140b49e1311eff28cc156)
2018-05-11lib/system: Remove float from androideabiJohn Ericson
There are two different official variations which differ in their float support, so such a blanket statement is invalid. `lib.systems.platforms.*android` already handles each case correctly. Correcting an error in 827ef0914089e1a2bba140b49e1311eff28cc156.
2018-05-11prebuilt android cc: Edit wrapper to pass the right -m flags for armv7aJohn Ericson
2018-05-11lib/systems: Add assertion to "android" ABIJohn Ericson
This is analogous to the GNU assertion.
2018-05-11lib/systems/inspect: Fix after assertionsJohn Ericson
Function are never equal in Nix, so we need to filter out this attribute in ABIs.
2018-05-11Merge pull request #40385 from obsidiansystems/lib-android-platformsJohn Ericson
lib: Add 32-bit Android platforms
2018-05-11lib: Add 32-bit Android platformsJohn Ericson
2018-05-11Merge pull request #40378 from obsidiansystems/lib-platform-sortJohn Ericson
lib/systems: Sort platforms, and space CPUs
2018-05-11lib/systems: Sort platforms, and space CPUsJohn Ericson
2018-05-11lib: Add more configure flag helpersJohn Ericson
Add with/without to match enable/disable, and add `--{enable,with}-key=value` versions of both.
2018-05-10Merge remote-tracking branch 'upstream/master' into lib-floatJohn Ericson
2018-05-10lib: Clean up float/fpu optionsJohn Ericson
ARM ABIs now have a float field. This is used as a fallback to lessen our use of `platform.gcc.float`. I didn't know what the MIPs convention is so I kept using `platform.gcc.float` in that case.
2018-05-10Merge pull request #40255 from matthewbauer/remove-enableIfAvailableMatthew Justin Bauer
treewide: remove lib.meta.enableIfAvailable
2018-05-10lib/systems: Prohibit "gnu" ABI (*-gnu) with 32-bit ARMJohn Ericson
It is ambiguous, and therefore banned within GCC.
2018-05-10Merge remote-tracking branch 'upstream/master' into lib-platform-simplifyJohn Ericson
2018-05-10Merge commit '70963b382f3f820ba6d3bc3b3aaf50a2957ec1ff' into ↵John Ericson
lib-platform-simplify
2018-05-10treewide: Get rid of `*Platform.arch`John Ericson
Use `parsed.cpu.name` or `platform.gcc.arch` instead.
2018-05-10Merge remote-tracking branch 'upstream/master' into uclibcJohn Ericson
2018-05-10Merge commit '70963b382f3f820ba6d3bc3b3aaf50a2957ec1ff' into uclibcJohn Ericson
2018-05-09xbursttools: Cleanup slightlyJohn Ericson
2018-05-09lib/systems: Add uClibc just like MUSLJohn Ericson
2018-05-09Merge pull request #40261 from obsidiansystems/more-armJohn Ericson
lib/systems: Parse more arm cpu types
2018-05-09lib/systems: Parse more arm cpu typesJohn Ericson
2018-05-09treewide: remove lib.meta.enableIfAvailableMatthew Bauer
2018-05-09lib.makeSearchPath: allow null in search pathMatthew Bauer
This makes things match ‘buildInputs’ where inputs are allowed to be null.
2018-05-07lib.types: fix loaOf behavior for long listsRobert Helgesson
Assigning a list of 10 or more elements to an option having the type `loaOf a` produces a configuration value that is not honoring the order of the original list. This commit fixes this and a related issue arising when 10 or more lists are merged into this type of option.
2018-05-06lib/types: remove unnecessary coerceFunc assertionSilvan Mosberger
2018-05-06lib/types: clear up coercedTo descriptionSilvan Mosberger
2018-05-06lib/types: Add coercedTo unsound testsSilvan Mosberger
2018-05-06lib/types: Fix coercedTo checkSilvan Mosberger
Without this change (coercedTo str toInt int).check "foo" would evaluate to true, even though (coercedTo str toInt int).merge {} [{ value = "foo"; }] will throw an error because "foo" can't be coerced to an int.
2018-05-01lib/systems: Fix eval for iphone32* examplesJohn Ericson
Whoops messed up 9a845de873dfcc31f360a08f1b1f786c6f649c7d slightly.
2018-05-01lib/systems: Update iOS examplesJohn Ericson
The commented-out configs are @shlevy's old known-good ones. I changed them as needed to play nice with lib.systems.parse but did not test so leaving them as comments for now.
2018-04-30Merge pull request #39788 from obsidiansystems/aarch32-for-masterJohn Ericson
lib: Improve deprecation message for `isArm`
2018-04-30Merge remote-tracking branch 'upstream/master' into aarch32John Ericson
2018-04-28treewide: rename version attributesMaximilian Bosch
As suggested in https://github.com/NixOS/nixpkgs/pull/39416#discussion_r183845745 the versioning attributes in `lib` should be consistent to `nixos/version` which implicates the following changes: * `lib.trivial.version` -> `lib.trivial.release` * `lib.trivial.suffix` -> `lib.trivial.versionSuffix` * `lib.nixpkgsVersion` -> `lib.version` As `lib.nixpkgsVersion` is referenced several times in `NixOS/nixpkgs`, `NixOS/nix` and probably several user's setups. As the rename will cause a notable impact it's better to keep `lib.nixpkgsVersion` as alias with a warning yielded by `builtins.trace`.
2018-04-28lib: deduplicate version/suffix referencesMaximilian Bosch
The logic regarding the generated `.version-suffix` file is already defined in `lib/trivial.nix` and shouldn't be duplicated in `nixos/version`.
2018-04-27lib/debug: add replacement instructions & release notesProfpatsch
for every deprecated function.
2018-04-27lib/debug: document module & functions, prune importsProfpatsch
2018-04-27lib/debug: deprecate `traceCallXml`Profpatsch
Incompletely documented, and a FIXME/bug that has been there for years.
2018-04-27lib/debug: deprecate `addErrorContextToAttrs`Profpatsch
The function isn’t used anywhere and `addErrorContext` is an undocumented builtin. The builtin is explicitely qualified at its two uses in the module system.
2018-04-27lib/debug: deprecate `traceValIfNot`Profpatsch
The function is only used in exactly one module and overly specific (`c` must be a true predicate for `x`, if not, a specific trace is called).
2018-04-27lib/debug: deprecate attrNamesToStr, traceXMLVal(Marked)Profpatsch
`attrNamesToStr` is very specific (and pretty trivial), so it doesn’t make sense to have it in the library. `traceXMLVal(Marked)` are just a builtin and `trace` and not very useful in general (trace output should not be parsed anyway).