about summary refs log tree commit diff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2018-08-21function rewritten by @InfinisilAaron Andersen1-8/+1
2018-08-21as requested:Aaron Andersen2-1/+17
- 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)
2018-08-20lib: Use lib.fixed-points.extends to avoid repetitionJohn Ericson1-1/+2
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.
2018-08-20xfig: 3.2.5b -> 3.2.7aMarkus Kowalewski1-0/+5
init fig2dev as separate package (3.2.7a). fig2dev was included in xfig in the previous version.
2018-08-16curl: add licenseMarkus Kowalewski1-0/+5
2018-08-15Merge pull request #44896 from cdepillabout/vbox-extpackzimbatm1-0/+6
add derivation for the virtualbox oracle extension pack
2018-08-15lib/recursiveUpdateUntil: add a test & release note for fixProfpatsch1-0/+24
2018-08-15lib/recursiveUpdateUntil: fix code to match documentationMathijs Kwik1-2/+3
$ nix repl lib Welcome to Nix version 2.0.2. Type :? for help. Loading 'lib'... Added 350 variables. -- this is the exact example from the function's documentation: nix-repl> recursiveUpdateUntil (path: l: r: path == ["foo"]) { # first attribute set foo.bar = 1; foo.baz = 2; bar = 3; } { #second attribute set foo.bar = 1; foo.quz = 2; baz = 4; } { bar = 3; baz = 4; foo = { bar = 1; baz = 2; quz = 2; }; } -- although the documentation says: { foo.bar = 1; # 'foo.*' from the second set foo.quz = 2; # bar = 3; # 'bar' from the first set baz = 4; # 'baz' from the second set }
2018-08-08Add the virtualbox-puel license to the licenses file.(cdep)illabout1-0/+6
2018-07-28systems: fix netbsd triple parsingMatthew Bauer1-4/+6
binutils expects x86_64-unknown-netbsd<version> (only 3 parts!). Any other combo seems to fail. Also handle darwin versions similarly. /cc @Ericson2314
2018-07-28elk: 6.2.4 -> 6.3.2Bas van Dijk1-0/+6
* The ELK stack is upgraded to 6.3.2. * `elasticsearch6`, `logstash6` and `kibana6` now come with X-Pack which is a suite of additional features. These are however licensed under the unfree "Elastic License". * Fortunately they also provide OSS versions which are now packaged under: `elasticsearch6-oss`, `logstash6-oss` and `kibana6-oss`. Note that the naming of the attributes is consistent with upstream. * The test `nix-build nixos/tests/elk.nix -A ELK-6` will test the OSS version by default. You can also run the test on the unfree ELK using: `NIXPKGS_ALLOW_UNFREE=1 nix-build nixos/tests/elk.nix -A ELK-6 --arg enableUnfree true`
2018-07-26lib/trivial: move zipIntBits to its own fileProfpatsch2-40/+49
The amount of implementation detail really should not be the first thing in a prominent file called `trivial.nix`.
2018-07-26lib/trivial: unify & improve docstringsProfpatsch1-23/+61
- add section headers - unify comment syntax - add examples Tested with: nix-instantiate --strict --eval ./lib/tests/misc.nix
2018-07-26systems: Allow detection of powerpc and sparcJohn Q Crosscompiler2-0/+4
2018-07-21treewide: fix build with disallowed aliases (#43872)volth1-1/+1
fixes build with disallowed aliases
2018-07-20[bot] treewide: remove unused 'inherit' in let blocksvolth4-9/+4
2018-07-20[bot]: remove unreferenced codevolth5-9/+0
2018-07-16licenses: Add CC-BY-NC-4.0André-Patrick Bubel1-0/+6
2018-07-15lib.debug: fix traceValSeqFnMatthieu Coudron1-1/+1
was calling the wrong parent version.
2018-07-12Revert "lib: Use lib.fixed-points.extends to avoid repetition"Silvan Mosberger1-1/+1
This reverts commit 48ccdf322d9e7a68d0caf5833511ee3e53ec7d3a.
2018-07-09lib: Use lib.fixed-points.extends to avoid repetitionJohn Ericson1-1/+1
2018-07-05lib.concatMap and lib.mapAttrs to be builtinsvolth2-3/+4
2018-07-03lib.generators.toPlist: add floatsMatthew Bauer1-6/+9
Nix now supports floats & we can pretty easily map them to Plist’s <real></real> type. Note that I am unsure how this affects older version of Nix that may or may not have builtins.isFloat available. Make sure this satisfies minver.nix’s "1.11" requirement.
2018-07-03lib: add float option typeRichard Marko2-1/+8
2018-06-30linux: translate config to structured configDan Peebles1-0/+57
Instead of using a string to describe kernel config, use a nix attribute set, then converted to a string. - allows to override the config, aka convert 'yes' into 'modules' or vice-versa - while for now merging different configs is still crude (last spec wins), at least there should be only one CONFIG_XYZ value compared to the current string config where the first defined would be used and others ignored. [initial idea by copumpkin in 2016, a major rebase to 2018 by teto]
2018-06-28Merge pull request #42669 from obsidiansystems/upstream-plistMatthew Bauer1-1/+48
Upstream PLIST handling
2018-06-28generators: refactor toPlistMatthew Bauer1-33/+32
Address PR comments Refactors - Rename toPLIST -> toPlist
2018-06-28generators: refactor toPLISTMatthew Bauer1-43/+43
2018-06-27generators: add PLIST handlingMatthew Bauer1-0/+48
/cc @LnL7 @3noch
2018-06-27Merge pull request #42138 from NixOS/yegortimoshenko-patch-6xeji1-1/+1
lib/modules: decrease mkOptionDefault priority to 1500
2018-06-27Merge pull request #40418 from oxij/lib/fix-module-aliasesMichael Raskin1-16/+18
lib, nixos: fix module aliases in presence of defaults
2018-06-26Merge pull request #42599 from obsidiansystems/xcodever-in-systemMatthew Justin Bauer2-3/+4
xcode: add xcodePlatform to system
2018-06-25xcode: add xcodePlatform to systemMatthew Bauer2-3/+4
This give us a little bit more control over what target we are using. Eventually we can target other things like WatchOS or MacOS.
2018-06-25Merge pull request #42399 from obsidiansystems/xcodever-in-systemMatthew Justin Bauer1-0/+4
xcode: add xcodeVer to system
2018-06-25xcode: add xcodeVer to systemMatthew Bauer1-0/+4
This version number controls which xcode version to use when building cross to iOS.
2018-06-24Mark more unfree licenses as unfree. See also #20256.Théo Zimmermann1-0/+6
2018-06-22android: add ndkVer to resolve ndk ambiguityMatthew Bauer1-1/+4
It wasn’t exactly clear which NDK you were using previously. This adds an attribute to system that handles what version of the NDK we should use when building things. /cc @Ericson2314
2018-06-22android: Use NDK 17 for aarch32Matthew Bauer1-2/+2
2018-06-17lib/modules: bump mkOptionDefault priority to 1500Yegor Timoshenko1-1/+1
2018-06-12platforms/raspberrypi: enable kernelAutoModulesBen Wolsieffer1-1/+2
2018-06-11lib: fix and simplify `doRename`Jan Malakhovski1-13/+17
Before this change `mkRenamedOptionModule` would override option defaults even when the old option name is left unused. For instance ```nix { optios = { services.name.new = mkOption { default = { one = {}; }; }; }; imports = [ (mkRenamedOptionModule [ "services" "name" "old" ] [ "services" "name" "new" "two" ]) ]; config = {}; } ``` would evaluate to `{ config.services.name.new = { two = {}; }; }` when you'd expect it to evaluate to `{ config.services.name.new = { one = {}; }; }`.
2018-06-11lib: simplify `mkAliasAndWrapDefinitions`Jan Malakhovski1-3/+1
2018-06-10maxscale: init at 2.1.17 (#33835)Izorkin1-0/+10
2018-06-10lib: bitAnd, bitOr, bitXor (bitsize-agnostic fallback function) (#41491)volth3-4/+68
* lib: bitAnd, bitOr, bitXor * lib: test for bitAnd, bitOr, bitXor * lib: bitsize-agnostic zipIntBits * lib: bitNot * lib: bitNot
2018-06-10lib: add groupBy (#38612)volth2-1/+37
2018-06-05Revert "lib: bitAnd, bitOr, bitXor"Profpatsch3-62/+4
2018-06-03Merge pull request #41373 from volth/bitwiseJörg Thalheim3-4/+62
lib: bitAnd, bitOr, bitXor
2018-06-02lib: test for bitAnd, bitOr, bitXorvolth1-0/+15
2018-06-01lib: bitAnd, bitOr, bitXorvolth2-4/+47
2018-06-01Merge branch 'plat-fix-for-merge-2' into masterTuomas Tynkkynen1-150/+7