summary refs log tree commit diff
path: root/lib
Commit message (Collapse)AuthorAge
* jasper: add licenseMarkus Kowalewski2018-11-01
|
* Merge pull request #49567 from obsidiansystems/arm-auto-detectJohn Ericson2018-10-31
|\ | | | | lib.systems.platforms: Add more ARM autodetection
| * lib.systems.platforms: Add more ARM autodetectionJohn Ericson2018-10-31
| |
* | systems/examples: add i686 & x86-64 embeddedMatthew Bauer2018-10-30
| | | | | | | | Fixes #28160
* | systems/parse.nix: support weird system configsMatthew Bauer2018-10-29
| | | | | | | | | | | | | | | | There are some weird ones out there that don’t follow any pattern: - arm-none-eabi - powerpc-none-eabi - aarch64-none-elf
* | gcc: support avrMatthew Bauer2018-10-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - respect libc’s incdir and libdir - make non-unix systems single threaded - set LIMITS_H_TEST to false for avr - misc updates to support new libc’s - use multilib with avr For threads we want to use: - posix on unix systems - win32 on windows - single on everything else For avr: - add library directories for avrlibc - to disable relro and bind - avr5 should have precedence over avr3 - otherwise gcc uses the wrong one
* | systems: add avrlibc for avr systemsMatthew Bauer2018-10-29
| |
* | avr: use new compilation infrastructureMatthew Bauer2018-10-29
| | | | | | | | | | | | | | | | | | | | Gets rid of: avrbinutils avrgcc to replace with: pkgsCross.avr.buildPackages.binutils pkgsCross.avr.buildPackages.gcc
* | Merge pull request #49383 from tazjin/docs/lib-docstringsGraham Christensen2018-10-29
|\ \ | | | | | | Update library function "docstrings" for nixdoc generation
| * | lib/options: Update documentation comments for docs generationVincent Ambo2018-10-29
| | | | | | | | | | | | | | | | | | | | | | | | Documents functions in `lib.options` for docs generation with nixdoc. The formatting change in the `mkOption` arguments is due to the way `nixdoc` parses documentation comments on pattern arguments. It's not ideal, but it works.
| * | lib/debug: Update documentation comments for docs generationVincent Ambo2018-10-29
| | | | | | | | | | | | | | | | | | | | | Documents functions in `lib.debug` for docs generation with nixdoc. Note that type signatures and clearer descriptions are still missing on some of these functions, but this is good enough for a first run.
| * | lib/lists: Update documentation comments for doc generationVincent Ambo2018-10-29
| | | | | | | | | | | | | | | | | | | | | Updates documentation comments with extra information for nixdoc[1] compatibility. [1]: https://github.com/tazjin/nixdoc
| * | lib/strings: Update documentation comments for doc generationVincent Ambo2018-10-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates documentation comments with extra information for nixdoc[1] compatibility. Some documentation strings have additionally been reworded for clarity. "Faux types" are added where applicable, but some functions do things that are not trivially representable in the type notation used so they were ignored for this purpose. [1]: https://github.com/tazjin/nixdoc
| * | lib/trivial: Update function comments for doc generationVincent Ambo2018-10-27
| | | | | | | | | | | | | | | Expands on some of the function comments and add some of the special syntaxes recognised by nixdoc.
* | | licenses: add GPLv2.0 only + classpath exceptiontaku02018-10-28
| | |
* | | lib.isStorePath: fix `false` result when passed a path objectTim Cuthbertson2018-10-20
| | | | | | | | | | | | | | | Since `isStorePath` relies on comparing against builtins.storeDir (a string), we need to convert the input into a string as well.
* | | Merge pull request #48680 from markuskowa/licenses-22xeji2018-10-18
|\ \ \ | | | | | | | | Add licenses
| * | | libmilter: add licenseMarkus Kowalewski2018-10-18
| | | |
* | | | Merge pull request #48602 from matthewbauer/cmake-crossJohn Ericson2018-10-18
|\ \ \ \ | |/ / / |/| | | Set CMAKE_SYSTEM_* for cross compiling
| * | | tests/systems.nix: fix testsMatthew Bauer2018-10-18
| | | | | | | | | | | | | | | | these weren’t being run correctly
| * | | Correctly set windows doublesMatthew Bauer2018-10-17
| | | | | | | | | | | | | | | | mingw is the toolchain name but it is actually run on a window kernel
| * | | lib/systems: use lookup for uname.systemMatthew Bauer2018-10-17
| | | | | | | | | | | | | | | | This is a little bit cleaner and avoids the if ... else if ... chain.
| * | | systems/doubles.nix: add mingw doublesMatthew Bauer2018-10-16
| | | | | | | | | | | | | | | | this makes it easier to show what supports windows vs. unix.
| * | | lib/systems: add uname attrsMatthew Bauer2018-10-16
| | | |
* | | | Revert "Merge pull request #48122 from zimbatm/pkg-nixos-rebuild"Eelco Dolstra2018-10-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 10addad6035034b2b78f3c74ef436cd7146d5231, reversing changes made to 7786575c6c0e1b010d46ad00b14d0bb5bf08d7d2. NixOS scripts should be kept in the NixOS source tree, not in pkgs. Moving them around is just confusing and creates unnecessary code/history churn.
* | | | move the codeName to /.codeNamezimbatm2018-10-16
| |/ / |/| | | | | | | | | | | Make the codeName globally accessible in the repo. The release is not only for NixOS anymore.
* | | Merge pull request #47182 from bhipple/add/mklMatthew Bauer2018-10-15
|\ \ \ | |/ / |/| | mkl: init at 2019.0.117
| * | mkl: init at 2019.0.117Benjamin Hipple2018-09-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | This packags the Intel Math Kernel library on x86-64 platforms, which is a dependency for many data science and machine learning packages. Upstream, Intel provides proprietary binary RPMs with a permissive redistribution license. These have been repackaged in both Debian and Anaconda, so we are not the first distribution to redistribute.
* | | generators: make toPretty handle floats correctlyLéo Gaspard2018-10-15
| | |
* | | alt-ergo: 1.30->2.2.0, ocplib-simplex: 0.3->0.4Moritz Kiefer2018-10-13
| | |
* | | Merge pull request #48251 from samueldr/feature/separated-string-descriptionRyan Mulligan2018-10-12
|\ \ \ | | | | | | | | lib/types: enhances separatedString's description.
| * | | lib/types: enhances separatedString's descriptionSamuel Dionne-Riel2018-10-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous description "string" is misleading in the full options manual pages; they are actually concatenated strings, with a specific character. The empty string version ("types.string") has been special-cased to provide a better message.
* | | | lib: fix wording of the `overrideScope` warningBas van Dijk2018-10-11
| | | |
* | | | Merge pull request #47980 from lopsided98/armv7l-system-configJohn Ericson2018-10-09
|\ \ \ \ | | | | | | | | | | lib/systems: use correct config for armv7l-hf-multiplatform
| * | | | lib/systems: use correct config for armv7l-hf-multiplatformBen Wolsieffer2018-10-06
| |/ / /
* / / / version.nix: extract revision-fetching functionGraham Christensen2018-10-05
|/ / /
* | | Merge pull request #47683 from NixOS/docs-lib-optionsGraham Christensen2018-10-02
|\ \ \ | | | | | | | | docs: lib/options.nix function documentation
| * | | docs: lib/options.nix function documentationTobias Pflug2018-10-02
| | | |
* | | | docs: documentation for `cleanSource`Tobias Pflug2018-10-02
|/ / /
* | | Merge pull request #47238 from obsidiansystems/overrideScope-orderJohn Ericson2018-09-24
|\ \ \ | |/ / |/| / | |/ lib: Deprecate `overrideScope` in lieu of `overrideScope'` taking arguments in the conventional order
| * lib: Make `overrideScope'` which takes arguments in the conventional orderJohn Ericson2018-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `overrideScope` bound by `makeScope` (via special `callPackage`) took an override in the form `super: self { … }`. But this is dangerously close to the `self: super { … }` form used by *everything* else, even other definitions of `overrideScope`! Since that implementation did not even share any code either until I changed it recently in 3cf43547f4be03d1d6eb0bbfc557e2dbc13b4095, this inconsistency is almost certainly an oversight and not intentional. Unfortunately, just as the inconstency is hard to debug if one just assumes the conventional order, any sudden fix would break existing overrides in the same hard-to-debug way. So instead of changing the definition a new `overrideScope'` with the conventional order is added, and old `overrideScope` deprecated with a warning saying to use `overrideScope'` instead. That will hopefully get people to stop using `overrideScope`, freeing our hand to change or remove it in the future.
* | Merge pull request #46336 from Infinisil/overrideExistingJörg Thalheim2018-09-18
|\ \ | | | | | | lib: Improve overrideExisting implementation
| * | lib.overrideExisting: Better exampleSilvan Mosberger2018-09-17
| | |
| * | lib/tests: Add overrideExisting testsSilvan Mosberger2018-09-17
| | |
| * | lib: Improve overrideExisting implementationSilvan Mosberger2018-09-07
| | |
* | | Merge remote-tracking branch 'upstream/master' into ↵John Ericson2018-09-17
|\ \ \ | |_|/ |/| | | | | darwin-android-ndk-for-master
| * | Merge pull request #36287 from shlevy/lib-tests-defaultGraham Christensen2018-09-16
| |\ \ | | | | | | | | lib/tests: Add check-eval.nix to run simple tests.
| | * | lib/tests: Add check-eval.nix to run simple tests.Shea Levy2018-03-04
| | | | | | | | | | | | | | | | | | | | This can be used by evaluation-only tools to validate tests are still working.
| * | | pythonmagick: fix build (#46469)Maximilian Bosch2018-09-10
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original build broke with the following linker issue: ``` CXXLD _PythonMagick.la /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/ld: cannot find -l-L/nix/store/4gh6ynzsd5ndx37hmkl62xa8z30k43y1-imagemagick-6.9.9-34/lib collect2: error: ld returned 1 exit status ``` This happens since `BOOST_PYTHON_LIB` wasn't set properly, however `_PythonMagick.la` was linked with `-l$(BOOST_PYTHON_LIB) $(MAGICK_LIBS)`. With an empty `BOOST_PYTHON_LIB` the linker got confused. To work around this, the `boost` library directory needs to be specified explicitly. To ensure that the changes take effect, the original `configure` script shipped with `$src` needs to be removed and recreated using the `autoreconfHook`. Additionally the `imagemagick` license (https://spdx.org/licenses/ImageMagick.html) needs to be added to `lib/licenses.nix` to document the proper license of `pythonmagick` in the meta section.
| * | lib: move assertMsg and assertOneOf to their own library fileProfpatsch2018-09-06
| | | | | | | | | | | | | | | Since the `assertOneOf` uses `lib.generators`, they are not really trivial anymore and should go into their own library file.