about summary refs log tree commit diff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2023-10-04licenses: add inria-zelusWeijia Wang1-0/+6
2023-10-04Merge pull request #258855 from tweag/fileset.doc-fixSilvan Mosberger2-2/+1
`lib.fileset.unions`: Fix outdated docs
2023-10-03lib.fileset.unions: Fix outdated docsSilvan Mosberger2-2/+1
Since 4f35f003e6e5b800be75e3985054e5fce2dea50a unions supports empty lists too
2023-10-03lib.fileset: _simplifyTree -> _normaliseTreeFilterSilvan Mosberger1-8/+8
2023-10-03lib.fileset: Order noEval lastSilvan Mosberger2-6/+10
2023-10-03lib.fileset: Link to user documentation from contributor docsSilvan Mosberger1-0/+5
2023-10-03Merge pull request #257351 from tweag/fileset.emptyRobert Hensing4-26/+119
`lib.fileset`: Representation for empty file sets without a base path
2023-10-03Merge pull request #258080 from tweag/fileset/no-ulimitRobert Hensing1-6/+7
lib.fileset: Don't use non-reproducible ulimit for stack overflow testing
2023-10-03lib.fileset: Internal representation v3, empty value without a baseSilvan Mosberger4-26/+119
`unions []` now works! Notably the new empty value without a base is not exposed in the interface. I don't know of any use case for it.
2023-10-02Merge pull request #251812 from LeSuisse/licenses-elv2Fabian Affolter1-3/+3
lib/licenses: add Elastic License 2.0, drop Elastic License
2023-10-02Merge pull request #257143 from peat-psuwit/netdata-no-v2-dashboardRyan Lahfa1-0/+8
2023-10-01Merge #257338: fdk-aac: fix the licenseVladimír Čunát1-0/+5
2023-09-30Merge pull request #249069 from amjoseph-nixpkgs/pr/lib/systems/ubootArchArtturi1-0/+6
lib.systems: add ubootArch
2023-09-29lib.fileset: Don't use non-reproducible ulimit for stack overflow testingSilvan Mosberger1-6/+7
2023-09-28lib.gvariant: make the tests really worklinsui2-87/+58
2023-09-27lib: add cmakeOptionType, cmakeBool and cmakeFeatureAnderson Torres2-0/+59
2023-09-27lib.attrsets.foldlAttrs: Make stricterSilvan Mosberger2-7/+7
See the parent commit for the same change to lib.lists.foldl'
2023-09-27lib.lists.foldl': Make strict in the initial accumulatorSilvan Mosberger3-6/+13
To maintain backwards compatibility, this can't be changed in the Nix language. We can however ensure that the version Nixpkgs has the more intuitive behavior.
2023-09-27lib.lists.foldl': Redo documentationSilvan Mosberger1-7/+48
Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
2023-09-26lib.lists.foldl': Add testsSilvan Mosberger1-0/+32
2023-09-26lib.lists.foldl': Remove fallbackSilvan Mosberger1-1/+1
Nix 2.3, the minimum Nix version supported by Nixpkgs, has `builtins.foldl'` already.
2023-09-26licenses: add Fraunhofer FDK AAC Codec LibraryFavoritoHJS1-0/+5
This license is used by the Fraunhofer FDK codec, which is currently mislicensed to Apache 2.0. Of course, this can't be corrected without having the proper license available in lib.licenses can't it?? Thanks @trofi for noticing this has an SPDX ID.
2023-09-24netdata: disable installation of non-free v2 dashboardRatchanan Srirattanamet1-0/+8
The v2 dashboard (included since version 1.41.0) is licensed under Netdata Cloud UI License v1.0, which is a non-free license. Patch the source code so that the v2 is not included in the source and the result derivation. Users that want the v2 dashboard can still request it by overriding this derivation and pass `withCloudUi = true`. Co-authored-by: Raito Bezarius <masterancpp@gmail.com> Fixes: https://github.com/NixOS/nixpkgs/issues/256964
2023-09-23Merge pull request #247077 from jmbaur/aarch64-embedded-rustcArtturi1-0/+1
2023-09-21licenses: fix full name of inria-iceslWeijia Wang1-1/+1
2023-09-21Merge pull request #255025 from tweag/fileset.unionRobert Hensing5-175/+610
`lib.fileset.union`, `lib.fileset.unions`: init
2023-09-21licenses: add OCaml LGPL Linking ExceptionNiols1-0/+5
2023-09-21Merge pull request #247288 from amjoseph-nixpkgs/pr/lib/systems/qemu-mips64n32Artturi1-0/+1
2023-09-21lib.fileset: Minor changes from feedbackSilvan Mosberger4-58/+52
Co-authored-by: Robert Hensing <robert@roberthensing.nl> Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-09-21lib.fileset: Internal representation v2, ~12x faster unions!Silvan Mosberger3-48/+32
$ ./benchmark.sh HEAD [...] Mean CPU time 0.04006 (σ = 0.0040146) for 10 runs is 8.193619775953792% (σ = 0.9584251052704821%) of the old value 0.488917 (σ = 0.0294955) [...]
2023-09-21lib.fileset: Ignore irrelevant shellcheck warningsSilvan Mosberger2-0/+3
2023-09-21lib.fileset: Use a nix-shell shebang for benchmark.shSilvan Mosberger1-1/+2
2023-09-21lib.fileset: Have benchmark.sh measure the timeSilvan Mosberger1-5/+36
2023-09-21lib.fileset: Add benchmark for unionsSilvan Mosberger1-0/+4
2023-09-21lib.fileset: More reusable benchmark codeSilvan Mosberger1-46/+55
2023-09-21lib.fileset.unions: Don't stack overflow for many filesSilvan Mosberger2-39/+39
2023-09-21lib.fileset: Optimise testsSilvan Mosberger1-4/+18
Previously a lot of processes were used, slowing it down considerably the more files were tested
2023-09-21lib.fileset: Various updates relating to union/unionsSilvan Mosberger3-18/+53
Also some minor formatting improvements
2023-09-21lib.fileset: Create tests for union and unionsSilvan Mosberger1-0/+82
2023-09-21lib.fileset.unions: initSilvan Mosberger1-0/+65
2023-09-21lib.fileset.union: initSilvan Mosberger2-0/+158
2023-09-17Merge pull request #249243 from lf-/jade/declarationsWithLocationsRobert Hensing3-5/+79
nixos/modules: Add declarationPositions
2023-09-13lib.fileset: Minor internal type doc fixSilvan Mosberger1-1/+1
2023-09-13lib.fileset.toSource: Evaluate fileset even for empty directoriesSilvan Mosberger3-1/+7
2023-09-13doc: Replace `sha256` with `hash` where appropriatenicoo1-1/+1
2023-09-13lib.fileset: Internal representation v1Silvan Mosberger3-24/+64
2023-09-13lib/fileset: Test function improvementSilvan Mosberger1-25/+34
We can now test returned paths being equal, no need to work around it anymore by making sure paths aren't returned (which would import them with the previous --json)
2023-09-11Merge pull request #250220Robert Helgesson2-3/+56
lib.generators.toGitINI: escape string values in configuration
2023-09-08nixpkgs/systems: Add ucrt64 as MinGW libcMoritz Angermann1-0/+5
The Minimalist Gnu for Windows distribution comes with support for the traditional msvcrt libc, as well as ucrt64 libc. The latter being the newer universal compiler runtime. We follow the msys2 environment naming convention[1]: | name | toolchain | arch | libc | libc++ | |------------|-----------|---------|--------|-----------| | mingw32 | gcc | i686 | msvcrt | libstdc++ | | mingw64 | gcc | x86_64 | msvcrt | libstdc++ | | ucrt64 | gcc | x86_64 | ucrt | libstdc++ | | clang32 | llvm | i686 | ucrt | libc++ | | clang64 | llvm | x86_64 | ucrt | libc++ | | clangarm64 | llvm | aarch64 | ucrt | libc++ | For now nixpkgs only supports the first three with this commit. -- [1]: https://www.msys2.org/docs/environments/
2023-09-08nixos/modules: Add declarationPositionsJade Lovelace3-5/+79
What it does: line and column level *declaration* position information: $ nix repl . nix-repl> :p nixosConfigurations.micro.options.environment.systemPackages.declarationPositions [ { column = 7; file = "/nix/store/24aj3k7fgqv3ly7qkbf98qvphasrw9nb-source/nixos/modules/config/system-path.nix"; line = 63; } ] Use cases: - ctags over NixOS options, as will be presented at NixCon 2023 ;) - improving the documentation pages to go to the exact line of the declarations. Related work: - https://github.com/NixOS/nixpkgs/pull/65024 This one does it for all *definitions* rather than declarations, and it was not followed through with due to performance worries. - https://github.com/NixOS/nixpkgs/pull/208173 The basis for this change. This change is just a rebase of that one. I split it out to add the capability before adding users of it, in order to simplify review. However, the ctags script in there is a sample user of this feature. Benchmarks: conducted by evaluating my own reasonably complex NixOS configuration with the command: `hyperfine -S none -w 1 -- "nix eval .#nixosConfigurations.snowflake.config.system.build.toplevel.outPath"` ``` Benchmark 1: nix eval .#nixosConfigurations.snowflake.config.system.build.toplevel.outPath Time (mean ± σ): 8.971 s ± 0.254 s [User: 5.872 s, System: 1.388 s] Range (min … max): 8.574 s … 9.327 s 10 runs Benchmark 1: nix eval .#nixosConfigurations.snowflake.config.system.build.toplevel.outPath Time (mean ± σ): 8.766 s ± 0.160 s [User: 5.873 s, System: 1.346 s] Range (min … max): 8.496 s … 9.033 s 10 runs ``` Summary of results: it seems to be in the noise, this does not cause any visible regression in times.