summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2018-11-30Merge master into staging-nextFrederik Rietdijk
2018-11-29Merge pull request #50212 from matthewbauer/host-emulatorMatthew Bauer
Add "emulator" function to systems
2018-11-29treewide: add emulator to platformMatthew Bauer
You can use stdenv.hostPlatform.emulator to get an executable that runs cross-built binaries. This could be any emulator. For instance, we use QEMU to emulate Linux targets and Wine to emulate Windows targets. To work with qemu, we need to support custom targets. I’ve reworked the cross tests in pkgs/test/cross to use this functionality. Also, I’ve used talloc to cross-execute with the emulator. There appears to be a cross-execute for all waf builds. In the future, it would be nice to set this for all waf builds. Adds stdenv.hostPlatform.qemuArch attrbute to get the qemuArch for each platform.
2018-11-29systems/examples.nix: move riscv function to let bindingMatthew Bauer
Makes it easier to use mapAttrs with lib.systems.examples. Now every entry in it are legitimate systems.
2018-11-22Merge master into staging-nextFrederik Rietdijk
2018-11-21Merge pull request #50532 from typetetris/add-extends-exampleRobert Hensing
lib/fixed-points.nix: add an example for extends
2018-11-21lib/fixed-points.nix: add an example for extendsEric Wolf
- helped me understand how extends works, hopefully it can help others too
2018-11-21systems/parse: add older x86 architecturesMatthew Bauer
i386, i486, i586 are added. These may have issues as many places assume i686 is the only valid 32 bit x86 architecture.
2018-11-18Merge staging-next into stagingFrederik Rietdijk
2018-11-16lib/licenses: remove bsl10Linus Heckemann
Licence isn't used anywhere and nonfree.
2018-11-16lib/licenses: mark some as unfreeLinus Heckemann
AMD license agreement (currently unavailable at the given URL, but included in tarball) disallows reverse-engineering, modification, redistribution etc; BSL licenses limit commercial production use.
2018-11-15group the release infozimbatm
this makes the codename globally accessible in the repo. The release is not only for NixOS anymore.
2018-11-12Merge pull request #49588 from vincrusher/masterMatthew Bauer
lib/system: More Types of CPUs Added
2018-11-11Merge staging-next into stagingFrederik Rietdijk
2018-11-10Merge pull request #48687 from danielrutz/port-typeSilvan Mosberger
Add port type
2018-11-09lib/systems: Added missing semicolonsVincent Weisner
2018-11-09lib/system: Added Embedded Platforms for the CPUsVincent Weisner
I added some embedded platforms for the CPUs I added to the parse.nix file. These could be used as new platforms for the added CPUs.
2018-11-08cwebbin: add licenseMarkus Kowalewski
2018-11-08lib: commitIdFromGitRepo: simplify a tiny bitJan Malakhovski
2018-11-06make-derivation: use pname-version as default name if both are presentPatrick Hilhorst
2018-11-02Update parse.nixVincent Weisner
2018-11-01jasper: add licenseMarkus Kowalewski
2018-11-01CPU FixJörg Thalheim
Co-Authored-By: vincrusher <vincentweisner@icloud.com>
2018-11-01Update parse.nixVincent Weisner
2018-10-31Merge pull request #49567 from obsidiansystems/arm-auto-detectJohn Ericson
lib.systems.platforms: Add more ARM autodetection
2018-10-31lib.systems.platforms: Add more ARM autodetectionJohn Ericson
2018-10-30systems/examples: add i686 & x86-64 embeddedMatthew Bauer
Fixes #28160
2018-10-29systems/parse.nix: support weird system configsMatthew Bauer
There are some weird ones out there that don’t follow any pattern: - arm-none-eabi - powerpc-none-eabi - aarch64-none-elf
2018-10-29gcc: support avrMatthew Bauer
- 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
2018-10-29systems: add avrlibc for avr systemsMatthew Bauer
2018-10-29avr: use new compilation infrastructureMatthew Bauer
Gets rid of: avrbinutils avrgcc to replace with: pkgsCross.avr.buildPackages.binutils pkgsCross.avr.buildPackages.gcc
2018-10-29Merge pull request #49383 from tazjin/docs/lib-docstringsGraham Christensen
Update library function "docstrings" for nixdoc generation
2018-10-29lib/options: Update documentation comments for docs generationVincent Ambo
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.
2018-10-29lib/debug: Update documentation comments for docs generationVincent Ambo
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.
2018-10-29lib/lists: Update documentation comments for doc generationVincent Ambo
Updates documentation comments with extra information for nixdoc[1] compatibility. [1]: https://github.com/tazjin/nixdoc
2018-10-29lib/strings: Update documentation comments for doc generationVincent Ambo
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
2018-10-28licenses: add GPLv2.0 only + classpath exceptiontaku0
2018-10-27lib/trivial: Update function comments for doc generationVincent Ambo
Expands on some of the function comments and add some of the special syntaxes recognised by nixdoc.
2018-10-20lib.isStorePath: fix `false` result when passed a path objectTim Cuthbertson
Since `isStorePath` relies on comparing against builtins.storeDir (a string), we need to convert the input into a string as well.
2018-10-18Merge pull request #48680 from markuskowa/licenses-22xeji
Add licenses
2018-10-18Add type port as an alias to u16Daniel Rutz
2018-10-18libmilter: add licenseMarkus Kowalewski
2018-10-18Merge pull request #48602 from matthewbauer/cmake-crossJohn Ericson
Set CMAKE_SYSTEM_* for cross compiling
2018-10-18tests/systems.nix: fix testsMatthew Bauer
these weren’t being run correctly
2018-10-17Correctly set windows doublesMatthew Bauer
mingw is the toolchain name but it is actually run on a window kernel
2018-10-17lib/systems: use lookup for uname.systemMatthew Bauer
This is a little bit cleaner and avoids the if ... else if ... chain.
2018-10-16systems/doubles.nix: add mingw doublesMatthew Bauer
this makes it easier to show what supports windows vs. unix.
2018-10-16lib/systems: add uname attrsMatthew Bauer
2018-10-16Revert "Merge pull request #48122 from zimbatm/pkg-nixos-rebuild"Eelco Dolstra
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.
2018-10-16move the codeName to /.codeNamezimbatm
Make the codeName globally accessible in the repo. The release is not only for NixOS anymore.