about summary refs log tree commit diff
path: root/lib
Commit message (Collapse)AuthorAge
* Merge pull request #50561 from oxij/lib/setPrioMichael Raskin2019-01-18
|\ | | | | lib: implement `setPrio`
| * lib: implement `setPrio`Jan Malakhovski2018-11-22
| | | | | | | | For when `hiPrio` and `lowPrio` are not enough.
* | Merge pull request #53397 from cdepillabout/aliasoptionmodule-set-priorityNicolas B. Pierron2019-01-14
|\ \ | | | | | | lib/modules: Add function to create option alias that respects priority
| * | Add test that shows that the aliases are able to override options.(cdep)illabout2019-01-06
| | |
| * | Pull out defaultPriority to a top-level definition.(cdep)illabout2019-01-06
| | |
| * | lib/modules: Add a function to create an option alias that respects the priority(cdep)illabout2019-01-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a function `mkAliasOptionModuleWithPriority`. This function will make an alias to an existing option and copy over the priority. This functionality is needed for PRs like #53041. In that case `nixos-generate-config` added an option to `hardware-configuration.nix` with `mkDefault`. That option was then changed and an alias created for the old name. The end user should be able to set the non-alias option in their `configuration.nix` and have everything work correctly. Without this function, the priority for the option won't be copied over correctly and the end-user will get a message saying they have the same option set to two different values.
| * | Add a failing test for mkAliasOptionModule.(cdep)illabout2019-01-04
| | |
* | | Merge pull request #53754 from danbst/lib-fake-hashesJörg Thalheim2019-01-10
|\ \ \ | | | | | | | | lib: add fake hashes
| * | | lib: add shortcuts for fake hashes (fakeSha256, fakeSha512)danbst2019-01-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fake hashes can be used as placeholders for all the places, where Nix expression requires a hash, but we don't yet have one. This should be more convenient than following: - echo|sha256sum, copy into clipboard, go to editor, paste into previously edited place - search nixpkgs for a random package, copy it's hash to cliboard, go to editor, paste into previously edited place Nix can add support for these fake hashes. In that case printed error should contain only 1 hash, so no more problem "which of two hashes from error should I use?" Idea by irc:Synthetica
* | | | Merge branch 'master' into staging-nextVladimír Čunát2019-01-05
|\| | | | | | | | | | | | | | | A few more rebuilds (~1k on x86_64-linux).
| * | | Merge pull request #53029 from Ericson2314/windows-ce-armJohn Ericson2019-01-04
| |\ \ \ | | |/ / | |/| | lib: Fix Mingw on 32-bit ARM
| | * | lib: Fix Mingw on 32-bit ARMJohn Ericson2019-01-04
| | | |
* | | | Merge master into staging-nextFrederik Rietdijk2018-12-31
|\| | |
| * | | Remove composableDerivation, closes #18763Frederik Rietdijk2018-12-30
| |/ /
* | | Merge branch 'master' into stagingJan Tojnar2018-12-25
|\| |
| * | licenses: update SPDX IDs (#52711)Orivej Desh2018-12-24
| | | | | | | | | | | | | | | | | | | | | | | | See the bottom of https://spdx.org/licenses/ for the list of deprecations. The explicit URLs of agpl3Plus and gpl2Classpath were dropped because the default SPDX URL is correct. wxWindows ID had wrong capitalization.
| * | Initial attempt to restore Android NDK cross buildingSander van der Burg2018-12-18
| | |
* | | Merge branch 'staging' into make-perl-pathdvolth2018-12-18
|\ \ \
| * | | Merge remote-tracking branch 'upstream/master' into stagingJan Tojnar2018-12-16
| |\| |
| | * | Merge pull request #51884 from alyssais/bundlerEnv-groupsAlyssa Ross2018-12-12
| | |\ \ | | | | | | | | | | bundlerEnv: improve handling of groups
| | | * | bundlerEnv: ensure dependencies always includedAlyssa Ross2018-12-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suppose I have a Gemfile like this: source "https://rubygems.org" gem "actioncable" gem "websocket-driver", group: :test The gemset.nix generated by Bundix 2.4.1 will set ActionCable's groups to [ "default" ], and websocket-driver's to [ "test" ]. This means that the generated bundlerEnv wouldn't include websocket-driver unless the test group was included, even though it's required by the default group. This is arguably a bug in Bundix (websocket-driver's groups should probably be [ "default" "test" ] or just [ "default" ]), but there's no reason bundlerEnv should omit dependencies even given such an input -- it won't necessarily come from Bundix, and it would be good for bundlerEnv to do the right thing. To fix this, filterGemset is now a recursive function, that adds dependencies of gems in the group to the filtered gemset until it stabilises on the gems that match the required groups, and all of their recursive dependencies.
| | * | | ikos: init at 2.1Etienne Laurin2018-12-12
| | |/ /
| * / / platform.emulator: fix non-x86 systemsJörg Thalheim2018-12-12
| |/ /
* / / lib.makePerlPath -> perlPackages.makePerlPathvolth2018-12-15
|/ /
* | systems/parse.nix: support eabihfMatthew Bauer2018-12-02
| | | | | | | | | | | | | | | | | | | | | | | | eabihf is an abi that can be used with ARM architectures that support the “hard float”. It should probably only be used with ARM32 when you are absolutely sure your binaries will run on ARM systems with a FPU. Also, add an example "armhf-embedded" to match the preexisting arm-embedded system. qmk_firmware needs hard float in a few places, so add them here to get that to work. Fixes #51184
* | Merge master into staging-nextFrederik Rietdijk2018-11-30
|\ \
| * \ Merge pull request #50212 from matthewbauer/host-emulatorMatthew Bauer2018-11-29
| |\ \ | | | | | | | | Add "emulator" function to systems
| | * | treewide: add emulator to platformMatthew Bauer2018-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | systems/examples.nix: move riscv function to let bindingMatthew Bauer2018-11-29
| | | | | | | | | | | | | | | | | | | | Makes it easier to use mapAttrs with lib.systems.examples. Now every entry in it are legitimate systems.
* | | | Merge master into staging-nextFrederik Rietdijk2018-11-22
|\| | |
| * | | Merge pull request #50532 from typetetris/add-extends-exampleRobert Hensing2018-11-21
| |\ \ \ | | | | | | | | | | lib/fixed-points.nix: add an example for extends
| | * | | lib/fixed-points.nix: add an example for extendsEric Wolf2018-11-21
| | | | | | | | | | | | | | | | | | | | - helped me understand how extends works, hopefully it can help others too
| * | | | systems/parse: add older x86 architecturesMatthew Bauer2018-11-21
| | |_|/ | |/| | | | | | | | | | | | | | i386, i486, i586 are added. These may have issues as many places assume i686 is the only valid 32 bit x86 architecture.
* | | | Merge staging-next into stagingFrederik Rietdijk2018-11-18
|\| | |
| * | | lib/licenses: remove bsl10Linus Heckemann2018-11-16
| | | | | | | | | | | | | | | | Licence isn't used anywhere and nonfree.
| * | | lib/licenses: mark some as unfreeLinus Heckemann2018-11-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | group the release infozimbatm2018-11-15
| |/ / | | | | | | | | | | | | this makes the codename globally accessible in the repo. The release is not only for NixOS anymore.
| * | Merge pull request #49588 from vincrusher/masterMatthew Bauer2018-11-12
| |\ \ | | | | | | | | lib/system: More Types of CPUs Added
| | * | lib/systems: Added missing semicolonsVincent Weisner2018-11-09
| | | |
| | * | lib/system: Added Embedded Platforms for the CPUsVincent Weisner2018-11-09
| | | | | | | | | | | | | | | | 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.
| | * | Update parse.nixVincent Weisner2018-11-02
| | | |
| | * | CPU FixJörg Thalheim2018-11-01
| | | | | | | | | | | | Co-Authored-By: vincrusher <vincentweisner@icloud.com>
| | * | Update parse.nixVincent Weisner2018-11-01
| | | |
* | | | Merge staging-next into stagingFrederik Rietdijk2018-11-11
|\| | |
| * | | Merge pull request #48687 from danielrutz/port-typeSilvan Mosberger2018-11-10
| |\ \ \ | | | | | | | | | | Add port type
| | * | | Add type port as an alias to u16Daniel Rutz2018-10-18
| | | | |
| * | | | cwebbin: add licenseMarkus Kowalewski2018-11-08
| | | | |
| * | | | lib: commitIdFromGitRepo: simplify a tiny bitJan Malakhovski2018-11-08
| | |_|/ | |/| |
* / | | make-derivation: use pname-version as default name if both are presentPatrick Hilhorst2018-11-06
|/ / /
* | / jasper: add licenseMarkus Kowalewski2018-11-01
| |/ |/|