summary refs log tree commit diff
path: root/lib
Commit message (Collapse)AuthorAge
...
| * | | 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.
| * | lib/trivial: add a few examples of usage of assertMsg/assertOneOfProfpatsch2018-09-06
| | |
| * | lib/trivial: add assertOneOfProfpatsch2018-09-06
| | |
| * | lib/trivial: add assertMsgProfpatsch2018-09-06
| | |
| * | Merge branch 'no-toPath'Shea Levy2018-09-06
| |\ \
| | * | treewide: Remove uses of builtins.toPath.Shea Levy2018-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | toPath has confusing semantics and is never necessary; it can always either just be omitted or replaced by pre-concatenating `/.`. It has been marked as "!!! obsolete?" for more than 10 years in a C++ comment, hopefully removing it will let us properly deprecate and, eventually, remove it.
| * | | Merge pull request #46011 from markuskowa/homepages-2xeji2018-09-03
| |\ \ \ | | | | | | | | | | Cleanup homepage links
| | * | | lsof: add license + update homepageMarkus Kowalewski2018-09-03
| | | | | | | | | | | | | | | | | | | | lib/licenses: add purdue style BSD license
| * | | | lib/trivial.nix: fix missing parensVladimír Čunát2018-09-03
| |/ / / | | | | | | | | | | | | | | | | Broken in 62dca7c9a; the tricky thing is that it depends on nix version. Explanation: https://github.com/NixOS/nix/issues/629
* / / / androidndk: Add Darwin supportJohn Ericson2018-09-17
|/ / / | | | | | | | | | | | | Also switch Linux to using the official sha1 hashes for consistency. They are gotten from https://developer.android.com/ndk/downloads/.
* | | Merge pull request #45038 from symphorien/optoptSilvan Mosberger2018-08-30
|\ \ \ | | | | | | | | module system: rework module merging
| * | | module system: rework module mergingSymphorien Gibol2018-08-27
| | | | | | | | | | | | | | | | The asymptotic complexity is now much lower.
* | | | Nix minimal version: 1.11 -> 2.0Jan Tojnar2018-08-30
| | | | | | | | | | | | | | | | Placeholders are just too convenient.
* | | | hurd: cleanup unmaintained targetJörg Thalheim2018-08-28
| | | | | | | | | | | | | | | | | | | | | | | | This has been not touched in 6 years. Let's remove it to cause less problems when adding new cross-compiling infrastructure. This also simplify gcc significantly.
* | | | Merge remote-tracking branch 'origin/master' into stagingMatthew Bauer2018-08-21
|\ \ \ \
| * | | | function rewritten by @InfinisilAaron Andersen2018-08-21
| | | | |
| * | | | as requested:Aaron Andersen2018-08-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - moved function into strings.nix - renamed function from makePerl5Lib - removed duplicates entries in the resulting value - rewrote the function from scratch after learning a few things (much cleaner now)
| * | | | lib: Use lib.fixed-points.extends to avoid repetitionJohn Ericson2018-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Another attempt after my sloppy https://github.com/NixOS/nixpkgs/commit/48ccdf322d9e7a68d0caf5833511ee3e53ec7d3a. @Infinisil, thanks again, reverted in https://github.com/NixOS/nixpkgs/commit/4794aa5de233b5bf2d1c3245946379699d023467 and explained my mistakes in https://github.com/NixOS/nixpkgs/commit/48ccdf322d9e7a68d0caf5833511ee3e53ec7d3a#commitcomment-29678643. I start with their work and provide this proof of this commit's correctness: ```nix (lib.fixedPoints.extends (lib.flip g) f) # now ((f: rattrs: self: let super = rattrs self; in super // f self super) (lib.flip g) f) # inline extends (self: let super = f self; in super // (lib.flip g) self super) # beta reduce (self: let super = f self; in super // g super self) # beta reduce (self_: let super = f self_; in super // g super self_) # alpha rename (self_: let super = f self_; in super // g super self_) # original, same ``` Eventually we might harmonize `overrideScope`'s `g` parameter with the general pattern, but I leave that breaking change as a separate step. Best not to refactor and break at once, and at least the abstractions make the oddity clearer.
| * | | | xfig: 3.2.5b -> 3.2.7aMarkus Kowalewski2018-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | init fig2dev as separate package (3.2.7a). fig2dev was included in xfig in the previous version.
* | | | | [RFC] ppc64le enablement (#45340)CrystalGamma2018-08-21
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ppc64le enablement * gcc, glibc: properly handle __float128 * lib/systems, stdenv: syntax cleanup * gcc7: remove ugly hack * gcc: add/update __float128 flags * stdenv: add another pair of quotes for consistency * gcc: move __float128 flag for ppc64le-glibc into common/platform-flags.nix