about summary refs log tree commit diff
path: root/lib
Commit message (Collapse)AuthorAge
...
| | * | | | licenses: remove fdl12Weijia Wang2022-10-27
| | | | | |
| | * | | | licenses: remove fdl11Weijia Wang2022-10-27
| | | | | |
* | | | | | Merge master into haskell-updatesgithub-actions[bot]2022-11-09
|\| | | | |
| * | | | | lib/types: add `descriptionClass` for `path`Naïm Favier2022-11-08
| | | | | |
* | | | | | haskell.compiler.ghc92: 9.2.4 -> 9.2.5sternenseemann2022-11-07
|/ / / / /
* | | | | cross/mingw: fix emulator for mingw32Jörg Thalheim2022-11-06
| | | | |
* | | | | Revert "lib,doc: remove obvious usages of toString on paths"Anderson Torres2022-11-05
| | | | |
* | | | | lib,doc: remove obvious usages of toString on pathsArtturin2022-11-06
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It gives a warning on the lazy-trees branch of Nix (NixOS/nix#6530) one of these was also giving me an error (the one in lib/trivial probably) ``` $ nix build warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/nixos/modules/installer/sd-card/sd -image-aarch64.nix' and then accessing it is deprecated, at /home/artturin/nixgits/my-nixpkgs/lib/modules. nix:349:99 warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/.git' and then accessing it is dep recated, at /home/artturin/nixgits/my-nixpkgs/lib/sources.nix:35:32 warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/nixos/modules/system/etc/etc.nix' and then accessing it is deprecated, at «stdin»:0 warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/nixos/modules/system/etc/etc-activ ation.nix' and then accessing it is deprecated, at «stdin»:0 warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/nixos/modules/installer/sd-card/sd -image-aarch64.nix' and then accessing it is deprecated, at «stdin»:0 error: cannot decode virtual path '/nix/store/virtual0000000000000000000000005-source' (use '--show-trace' to show detailed location information) ```
* | | | Merge pull request #199244 from markuskowa/fix-licensesmarkuskowa2022-11-05
|\ \ \ \ | |_|/ / |/| | | Fix licenses in various packages
| * | | arkpandora_ttf: add licenseMarkus Kowalewski2022-11-02
| |/ /
* | | lib/tests/modules: Test doRenameRobert Hensing2022-11-03
| | |
* | | lib.modules.doRename: Don't define warning, even as undefined, if not warning.Shea Levy2022-11-03
|/ / | | | | | | This fixes mkAliasOptionModule in systems with no warning option.
* | lib: Automatically generate lib.filesytem docsSilvan Mosberger2022-10-26
| |
* | Merge pull request #173949 from jacoblambda/fix-toInt-zero-paddingRobert Hensing2022-10-24
|\ \ | | | | | | lib: add strings.toIntBase10 to parse zero-padded strings
| * | lib/strings: Update docs and restructured code to improve readability of ↵Jacob Abel2022-10-23
| | | | | | | | | | | | toInt and toIntBase10.
| * | lib/strings: Improve error message for octal ambiguity in toIntJacob Abel2022-10-23
| | |
| * | lib/strings: Refactor toInt into toInt and toIntBase10Jacob Abel2022-10-23
| | |
| * | lib/strings: Update toInt to handle intermixed ws and zeros. Added testsJacob Abel2022-10-23
| | |
| * | lib/strings: allow toInt to parse zero-padded stringsJacob Abel2022-10-23
| | |
* | | lib.normalizePath: the empty string is not a valid regex on darwinGuillaume Girol2022-10-24
|/ / | | | | | | | | | | presumably due to using libc++'s regex lib instead of libstdc++ on linux Fixes https://github.com/NixOS/nixpkgs/pull/177273#issuecomment-1287562800
* | Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt2022-10-21
|\ \
| * \ Merge pull request #196397 from fgaz/hikounomizu/initSandro2022-10-21
| |\ \
| | * | lib.licenses: add lal12 and lal13Francesco Gazzetta2022-10-17
| | | |
* | | | Merge master into staging-nextgithub-actions[bot]2022-10-21
|\| | |
| * | | lib/tests/misc: Add tests for charToInt, escapeC, and normalizePathDaniel Olsen2022-10-20
| | | |
| * | | lib.strings: Add normalizePathajs1242022-10-20
| | | | | | | | | | | | | | | | | | | | | | | | dedupes extranous /'s in filepaths Co-authored-by: Daniel Olsen <daniel.olsen99@gmail.com>
| * | | lib.strings: Add function to do C-style escapingDaniel Olsen2022-10-20
| | | |
| * | | lib.strings: Add function to convert character to numberDaniel Olsen2022-10-20
| | | |
* | | | Merge master into staging-nextgithub-actions[bot]2022-10-20
|\| | |
| * | | Merge pull request #193551 from OPNA2608/init/mac-fdiskSandro2022-10-19
| |\ \ \
| | * | | licenses: Add apsl10OPNA26082022-10-13
| | | | |
* | | | | Merge branch 'master' into staging-nextJan Tojnar2022-10-19
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ; Conflicts: ; pkgs/development/tools/codespell/default.nix codespell 2.2.2 switched to pyproject & setuptools_scm: https://github.com/codespell-project/codespell/pull/2523
| * | | | Merge pull request #194035 from Ma27/show-option-quotingRobert Hensing2022-10-18
| |\ \ \ \ | | |_|/ / | |/| | | lib/options/showOption: fix quoting of attr-names that are not identifiers
| | * | | lib/options/showOption: fix quoting of attr-names that are not identifiersMaximilian Bosch2022-10-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Personally, I think that warnings such as warning: The option `services.redis.enable' defined in `/home/ma27/Projects/nixpkgs/test.nix@node-vm' has been renamed to `services.redis.servers..enable'. are fairly confusing because of the `..` and it's more correct to actually quote that. With this change the warning now looks like this: warning: The option `services.redis.enable' defined in `/home/ma27/Projects/nixpkgs/test.nix@node-vm' has been renamed to `services.redis.servers."".enable'. While implementing that I realized that you'd have a similar problem whenever you use attribute-names that aren't identifiers, e.g. services.nginx.virtualHosts."example.org".locations."/".invalid = 23; now results in the following error: error: The option `interactive.nodes.vm.services.nginx.virtualHosts."example.org".locations."/".invalid' does not exist. Definition values: - In `/home/ma27/Projects/nixpkgs/test.nix@node-vm': 23 Of course there are some corner-cases where this won't work: when generating the manual, you display submodules like this: services.nginx.virtualHosts.<name> Since `<name>` isn't a value, but an indicator for a submodule, it must not be quoted. This also applies to the following identifiers: * `*` for `listOf submodule` * `<function body>` for `functionTo` This might not be correct if you actually have a submodule with an attribute name called `<name>`, but I think it's an improvement over the current situation and for this you'd probably need to make even more complex changes to the module system.
| | * | | lib/types: always use `<function body>` instead of `[function body]` to ↵Maximilian Bosch2022-10-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | indicate a function inside an option structure The motivation is to have a single identifier for that. Useful for the next commit where I'll try to escape option-parts correctly (options can be any kind of strings, but unless these are Nix identifiers, they must be quoted). Since `<function body>` (or `<name>`/`*`) are special identifiers in error messages and the manual, we need a unique way to mark an option part as function call because these are not to be quoted.
* | | | | Merge staging-next into staginggithub-actions[bot]2022-10-13
|\| | | |
| * | | | Merge pull request #192755 from hercules-ci/lib-types-unspecified-nameSilvan Mosberger2022-10-13
| |\ \ \ \
| | * | | | lib.types.unspecified: Make name match attribute name againRobert Hensing2022-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | @Infinisil: This isn't right, the name shouldn't be changed, but instead a description should be added https://github.com/NixOS/nixpkgs/pull/191353#discussion_r978983401
* | | | | | Merge branch 'master' into stagingVladimír Čunát2022-10-13
|\| | | | |
| * | | | | Merge pull request #193484 from wegank/gpl1-eolSandro2022-10-12
| |\ \ \ \ \
| | * | | | | licenses: remove gpl1Weijia Wang2022-09-29
| | | | | | |
* | | | | | | treewide: optional -> optionals where the argument is a listArtturin2022-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the argument to optional should not be list
* | | | | | | Merge staging-next into staginggithub-actions[bot]2022-10-09
|\| | | | | |
| * | | | | | Merge master into staging-nextgithub-actions[bot]2022-10-09
| |\ \ \ \ \ \
| | * | | | | | licenses: add libssh2 licenseWeijia Wang2022-10-09
| | | | | | | |
* | | | | | | | lib.closePropagation: Remove the quadratic behavior in lib.closePropagationGuillaume Bouchard2022-10-07
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code of `lib.closePropagation` was internally using a recursion on the dependencies and returns all the derivation directly or indirectly referenced by buildInputs. `lib.closeProgation` is implemented in pure nix and uses an unique function for list which is quadratic and does "true" equality, which needs deep set comparison. Instead, we use the `builtins.genericClosure` which is implemented as a builtin and uses a more efficient sorting feature. Note that `genericClosure` needs a `key` to discriminate the values, we used the `outPath` which is unique and orderable. On benchmarks, it performs up to 15x time faster on a benchmark related to haskellPackages.ghcWithPackages.
* | | | | | | Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt2022-10-05
|\| | | | | |
| * | | | | | Merge pull request #188265 from steveeJ-forks/pr-holochain-launcher-binSandro2022-10-03
| |\ \ \ \ \ \ | | |_|_|/ / / | |/| | | | |
| | * | | | | lib.licenses: add CAL-1.0Stefan Junker2022-09-15
| | |/ / / /
* | | | | | Merge master into staging-nextgithub-actions[bot]2022-10-02
|\| | | | |