summaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Expand)AuthorAgeFilesLines
* Merge pull request #130862 from Atemu/licenses-redistributable-attr•••lib.licenses: cleanup, consistency and redistributable attributeKevin Cox2021-08-111-138/+156
|\
| * lib.licenses: mark a few unfree redistributable licenses as such•••I'm sure there are more but it's not feasible for a single person to check all of them Atemu2021-08-111-0/+6
| * lib.licenses: introduce `redistributable` attribute•••Allows for distinction of licenses that are unfree overall but do grant the right to redistribute. Defaults to the freeness of the license. Note: Many unfree but are redistributable licenses aren't marked as such. I expect that to be fixed in a distributed manner over time. Closes https://github.com/NixOS/nixpkgs/pull/97789 Atemu2021-08-111-0/+2
| * lib.licenses: make all licenses have `free` and `deprecated` attrs•••This makes them consistent which eases more complex operations on licenses such as filtering etc. Atemu2021-08-111-1/+3
| * lib.licenses: refactor common attribute application•••This is cleaner and makes common attribute application more expandable Atemu2021-08-111-138/+146
* | lib/options: Better mergeEqualOption error for uncomparable types•••For an option definition that uses `lib.options.mergeEqualOption` underneath, like `types.anything`, an error is thrown when multiple functions are assigned, indicating that functions can't be compared for equivalence: error: The option `test' has conflicting definition values: - In `xxx': <function> - In `xxx': <function> (use '--show-trace' to show detailed location information) However, the error message didn't use the correct files. While above error indicates that both definitions are in the xxx file, that's in fact not true. Above error was generated with options.test = lib.mkOption { type = lib.types.anything; }; imports = [ { _file = "yyy"; test = y: y; } { _file = "xxx"; test = x: x; } ]; With this change, the error uses the correct file locations: error: The option `test' has conflicting definition values: - In `xxx': <function> - In `yyy': <function> (use '--show-trace' to show detailed location information) Silvan Mosberger2021-08-101-1/+2
* | Merge pull request #131267 from blaggacao/fix-functionArgs•••lib: fix functionArgs for functorsSilvan Mosberger2021-08-042-1/+14
|\ \
| * | lib: fix functionArgs for functors•••`functionArgs` should give valid results on functions that have been identified with `lib.isFunction` instead of erroring out. David Arnold2021-08-032-1/+14
* | | lib.systems: add m68k-netbsd support•••m68k was recently added for Linux and none, but NetBSD also supports m68k. Nothing will build yet, but I want to make sure we at least encode the existence of NetBSD support for every applicable architecture we support for other operating systems. Alyssa Ross2021-08-013-6/+7
* | | lib.systems.doubles: re-sort•••These were alphabetically sorted until m68k and s390 were added. Alyssa Ross2021-08-011-6/+6
* | | lib/systems/platforms: armv7l-hf-multiplatform: fix kernel build•••autoModules triggers a build system bug where ks8851_mll needs to be built-in if ks8851 is also built-in. Ben Wolsieffer2021-07-301-0/+6
|/ /
* | Merge pull request #110742 from siraben/deprecate-foldBen Siraphob2021-07-273-10/+10
|\ \
| * | treewide: fold -> foldrBen Siraphob2021-01-263-10/+10
* | | Initial implementation of s390 cross-compileBen Siraphob2021-07-255-3/+11
* | | Merge pull request #131310 from siraben/m86k-cross•••Initial implementation of m68k cross-compileJohn Ericson2021-07-245-2/+11
|\ \ \
| * | | Initial implementation of m68k cross-compileBen Siraphob2021-07-245-2/+11
* | | | Merge pull request #128032 from Artturin/add-swap-options•••nixos/swap: add options optionRobert Hensing2021-07-231-0/+7
|\ \ \ \ | |/ / / |/| | |
| * | | lib/types.nix: add nonEmptyStrArtturin2021-07-201-0/+7
* | | | Merge pull request #124353 from hercules-ci/small-enum-description•••lib.types.enum: Improve description for lengths 0 and 1Robert Hensing2021-07-181-1/+11
|\ \ \ \ | |_|_|/ |/| | |
| * | | lib.types.enum: Improve description for lengths 0 and 1Robert Hensing2021-05-251-1/+11
* | | | lib.mkFixStrictness: DeprecateRobert Hensing2021-07-122-4/+2
* | | | Partially revert "lib/modules: Drop mkStrict and mkFixStrictness"•••mkFixStrictness was never properly deprecated and should only be removed after warning for some time. This partially reverts commit 8fb9984690c878fcd768e967190957441de05d11. Robert Hensing2021-07-122-2/+6
* | | | strings.nix: Fix overly monomorphic type signature comments•••These functions work on lists of anything, not just lists of strings.Niklas Hambüchen2021-07-041-2/+2
* | | | Merge pull request #124875 from hercules-ci/lib-sources•••lib.sources: docs, tests, refactoringRobert Hensing2021-06-283-17/+163
|\ \ \ \
| * | | | lib.sources.trace: initRobert Hensing2021-05-291-0/+26
| * | | | lib.sources.sourceFilesBySuffices: Improve docRobert Hensing2021-05-291-5/+17
| * | | | lib/tests/sources.sh: initRobert Hensing2021-05-293-0/+64
| * | | | lib/sources: Internal representation for cleanSourceWithRobert Hensing2021-05-291-12/+56
* | | | | Merge master into staging-nextgithub-actions[bot]2021-06-232-6/+2
|\ \ \ \ \ | | |_|/ / | |/| | |
| * | | | Merge pull request #125991 from helsinki-systems/drop/mkStrict•••lib/modules: Drop mkStrict and mkFixStrictnessSilvan Mosberger2021-06-232-6/+2
| |\ \ \ \
| | * | | | lib/modules: Drop mkStrict and mkFixStrictness•••This was deprecated in 2014 and is not used anywhere in the tree. Janne Heß2021-06-062-6/+2
* | | | | | Merge branch 'master' into staging-nextMartin Weinelt2021-06-221-1/+1
|\| | | | |
| * | | | | treewide: use quotes for urlPavol Rusnak2021-06-201-1/+1
* | | | | | mesaPlatforms: Welcome riscv64-linux to the familyZhaofeng Li2021-06-121-1/+1
|/ / / / /
* | | | | Merge pull request #125942 from musfay/rlottie•••rlottie: 0.1 -> 0.2tomberek2021-06-071-0/+5
|\ \ \ \ \
| * | | | | rlottie: 0.1 -> 0.2Mustafa Çalışkan2021-06-061-0/+5
* | | | | | lib.systems.parsed: add "elf" for some NetBSD archs•••In Autoconf, some old NetBSD targets like "i686-unknown-netbsd" are interpreted as a.out, not elf, and virtually nothing supports it. We need to specify e.g. "i686-unknown-netbsdelf" to get the right behaviour. Alyssa Ross2021-06-061-1/+13
* | | | | | lib.systems.parse.kernels: fix typo in commentAlyssa Ross2021-06-061-1/+1
| |/ / / / |/| | | |
* | | | | Merge pull request #82642 from magnetophon/faustPhysicalModelingSandro2021-06-061-0/+6
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | licenses: add stkBart Brouns2020-12-021-0/+6
* | | | | Merge pull request #124992 from primeos/android-tools•••android-tools: init at 31.0.0p1Michael Weiss2021-06-021-0/+5
|\ \ \ \ \
| * | | | | android-tools: init at 31.0.0p1•••lowPrio is used to avoid collisions with the simg2img package. Licensing information is in share/licenses/android-tools/AOSP_LICENSE. Michael Weiss2021-06-021-0/+5
| | |/ / / | |/| | |
* | | | | platforms: Enable ftrace support for RISC-V•••Support has landed in mainline for a while. Zhaofeng Li2021-06-011-1/+0
* | | | | platforms: Build flat kernel image for RISC-V•••Newer bootloaders for RISC-V (i.e., OpenSBI + U-Boot) support flat and compressed kernel images but not vmlinux. Therefore, let's build "Image" like what we do with aarch64. Also copy DTBs while we are at it. Zhaofeng Li2021-06-011-1/+2
|/ / / /
* | | | Merge pull request #119967 from xoe-labs/da/add-lib-flake•••init: lib/flakeAnderson Torres2021-05-241-0/+5
|\ \ \ \
| * | | | init: lib/flake•••A subflake that can be indidividually accessed without also providing an interface to the whole of nixpkgs. Usage: inputs.nixpkgs-lib.url = "github:NixOS/nixpkgs?dir=lib" David Arnold2021-04-281-0/+5
* | | | | Merge remote-tracking branch 'origin/master' into staging-next•••Conflicts: pkgs/tools/networking/xh/default.nix Jonathan Ringer2021-05-221-1/+1
|\ \ \ \ \
| * | | | | 21.11 is Porcupine!Jonathan Ringer2021-05-221-1/+1
| | |_|/ / | |/| | |
* | | | | darwin: use "11.0" as sdk and minimum version on aarch64-darwinAndrew Childs2021-05-171-1/+1
* | | | | lib/systems/platforms: add Apple M1Andrew Childs2021-05-171-1/+11