about summary refs log tree commit diff
path: root/lib
Commit message (Collapse)AuthorAge
...
| * | | | | | top-level: Fix dontRecurseIntoAttrs and include in libRobert Hensing2019-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dontRecurseIntoAttrs was a noop (x: x), causing the expression dontRecurseIntoAttrs (recurseIntoAttrs a) to have the wrong effect.
| * | | | | | lib: Add recurseIntoAttrsRobert Hensing2019-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the function available without having to evaluate the Nixpkgs fix-point, making it available in a more natural way for code that deals with multiple Nixpkgs invocations. Its definition is coupled to Nix rather than Nixpkgs, so it will feel right at home in lib.
* | | | | | | Merge pull request #80814 from matthewbauer/default-newlib-for-noneJohn Ericson2020-02-22
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | lib/systems: Assume newlib when no kernel and no libc is provided
| * | | | | | | lib/systems: Assume newlib when no kernel and no libc is providedMatthew Bauer2020-02-22
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | newlib is the default for most tools when no kernel is provided. Other exist, but this seems like a safe default.
* | | | | | | 20.09 is Nightingaleworldofpeace2020-02-10
| |_|_|_|/ / |/| | | | |
* | | | | | Merge pull request #68897 from edolstra/masterEelco Dolstra2020-02-10
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | Flake support
| * | | | | lib/tests/misc.nix: Don't make a copy on NixpkgsEelco Dolstra2020-02-10
| | | | | |
| * | | | | lib/tests/misc.nix: Fix dependency on currentSystemEelco Dolstra2020-02-10
| | | | | | | | | | | | | | | | | | | | | | | | This doesn't work in pure mode.
* | | | | | Merge pull request #79291 from chkno/remove-isArmworldofpeace2020-02-08
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Remove isArm
| * | | | | stdenv: Remove isArm (use isAarch32 instead)Chuck2020-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | isArm has been deprecated for three releases. All references have been removed. Tree-wide substitution was performed in #37401 21 months ago.
| * | | | | lib.systems.elaborate: isArm -> isAarch32Chuck2020-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the last reference to isArm. isArm is deprecated after 18.03. This substitution was performed tree-wide in #37401.
* | | | | | Revert "Revert "Merge master into staging-next""Frederik Rietdijk2020-02-05
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 87a19e9048773d5a363679617406ad148d36c3b8 I merged staging-next into master using the GitHub gui as intended. In ac241fb7a570d6cf81d229ad22a8889602639160 I merged master into staging-next for the next staging cycle, however, I accidentally pushed it to master. Thinking this may cause trouble, I reverted it in 0be87c79797a5fa384fbc356c74ed54f9f7829ea. This was however wrong, as it "removed" master. This reverts commit 0be87c79797a5fa384fbc356c74ed54f9f7829ea.
* | | | | Revert "Merge master into staging-next"Frederik Rietdijk2020-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I merged master into staging-next but accidentally pushed it to master. This should get us back to 87a19e9048773d5a363679617406ad148d36c3b8. This reverts commit ac241fb7a570d6cf81d229ad22a8889602639160, reversing changes made to 76a439239eb310d9ad76d998b34d5d3bc0e37acb.
* | | | | lib/strings: fix comment typoRobert Helgesson2020-02-05
|/ / / /
* | | | Merge pull request #78337 from Profpatsch/lib-improve-cli-moduleProfpatsch2020-01-24
|\ \ \ \ | | | | | | | | | | lib: improve cli module
| * | | | lib/cli: mkKey -> mkOptionName, use generators.mkValueStringDefaultProfpatsch2020-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let’s call them by what they are, option names. `generators.mkValueStringDefault` is a better value string renderer than plain `toString`. Also add docs to all options.
| * | | | lib/generators: floats are not supported in mkValueStringDefaultProfpatsch2020-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | They are cut off after a few decimal places; we cannot in good faith define a default string representation with that.
| * | | | lib/cli: rename `renderX` options to `mkX`Profpatsch2020-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mirrors the naming scheme in `generators.nix`, for consistency. Also rename `key` to `k` and value to `v` to aid readability to the code structure.
| * | | | lib/cli,lib/tests/misc: somewhat more standard formattingProfpatsch2020-01-23
| | | | |
| * | | | lib/cli: encodeGNUCommandLine -> toGNUCommandLineShellProfpatsch2020-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The semantic difference between `encode` and `to` is not apparent. Users are likely to confuse both functions (which leads to unexpected error messages about the wrong types). Like in `generators.nix`, all functions should be prefixed by `to`. Furthermore, converting to a string depends on the target context. In this case, it’s a POSIX shell, so we should name it that (compare `escapeShellArg` in `strings.nix`). We can later add versions that escape for embedding in e.g. python scripts or similar.
| * | | | lib/cli: unexport symbols & sort with generatorsProfpatsch2020-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lib/cli is very similar to generators, so it should follow largely the same interface. Similar to how generators isn’t exported, we should also namespace cli by default (plus “cli” is only three characters to type).
* | | | | Merge pull request #78058 from mayflower/nixos/version-gitdir-symlinkFranz Pletz2020-01-24
|\ \ \ \ \ | |/ / / / |/| | | | nixos/version: fix case where .git is a symlink
| * | | | nixos/version: fix case where .git is a symlinkFranz Pletz2020-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before c9214c394b248e1f26e45dbe1be2bd82363af3a6 and 9d396d2e426b9a765de0b8999aa214f1259633e6 if .git is symlink the version would gracefully default to no git revision. With those changes an exception is thrown instead. This introduces a new function `pathIsGitRepo` that checks if `commitIdFromGitRepo` fails without error so we don't have to reimplement this logic again and can fail gracefully.
* | | | | Merge pull request #77855 from AndersonTorres/update/notionAnderson Torres2020-01-22
|\ \ \ \ \ | | | | | | | | | | | | notion: 3-2017050501 -> 3-2019050101
| * | | | | Notion custom license: excludeAndersonTorres2020-01-17
| |/ / / /
* | | | | nixos/lib: Inherit type for doRename options (#78135)Silvan Mosberger2020-01-20
|\ \ \ \ \ | | | | | | | | | | | | nixos/lib: Inherit type for doRename options
| * | | | | nixos/lib: Inherit type for doRename optionsJanne Heß2020-01-20
| |/ / / / | | | | | | | | | | | | | | | Co-authored-by: Silvan Mosberger <contact@infinisil.com>
* / / / / lib/attrsets: Fix error in comment for getAttrFromPathSilvan Mosberger2020-01-20
|/ / / /
* | | | Merge pull request #77704 from mayflower/also-submodulesSilvan Mosberger2020-01-16
|\ \ \ \ | | | | | | | | | | lib.commitIdFromGitRepo: fix support for git-submodule
| * | | | lib.commitIdFromGitRepo: fix support for git-submoduleelseym2020-01-14
| | | | | | | | | | | | | | | | | | | | Adds handling for relative references from .git-files, fixing a bug introduced by c9214c394b248e1f26e45dbe1be2bd82363af3a6.
* | | | | Replace short URL from #63103 with full URL.Drew Hess2020-01-15
|/ / / / | | | | | | | | | | | | | | | | The error message is already helpfully verbose, so there's little reason to shorten the informational URL.
* | | | lib/types: prioritise coercedType in coercedToarcnmx2020-01-14
| | | | | | | | | | | | | | | | | | | | This more intuitively matches `types.either` and allows paths to be coerced to submodules again, which was inhibited by #76861
* | | | Merge pull request #77047 from NixOS/staging-nextFrederik Rietdijk2020-01-14
|\ \ \ \ | | | | | | | | | | Staging next
| * \ \ \ Merge master into staging-nextFrederik Rietdijk2020-01-14
| |\ \ \ \
| * \ \ \ \ Merge master into staging-nextFrederik Rietdijk2020-01-13
| |\ \ \ \ \
| * \ \ \ \ \ Merge master into staging-nextFrederik Rietdijk2020-01-10
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge master into staging-nextFrederik Rietdijk2020-01-10
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ Merge branch 'master' into staging-nextVladimír Čunát2020-01-08
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The nss rebuild isn't so small.
| * \ \ \ \ \ \ \ \ Merge master into staging-nextFrederik Rietdijk2020-01-07
| |\ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ Merge pull request #74284 from matthewbauer/ios-with-xcode-11Matthew Bauer2020-01-03
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Update iOS for XCode 11
| | * \ \ \ \ \ \ \ \ \ Merge remote-tracking branch 'origin/master' into ios-with-xcode-11Matthew Bauer2020-01-03
| | |\ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | lib/systems: use newer ios sdkMatthew Bauer2020-01-03
| | | | | | | | | | | | |
* | | | | | | | | | | | | Merge pull request #75539 from Gabriel439/gabriel/renderOptionsRobert Hensing2020-01-14
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|/ / / / |/| | | | | | | | | | | | Add `pkgs.lib.encodeGNUCommandLine`
| * | | | | | | | | | | | Export toGNUCommandLine Gabriel Gonzalez2020-01-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... as suggested by @roberth Co-Authored-By: Robert Hensing <roberth@users.noreply.github.com>
| * | | | | | | | | | | | Factor out a `toGNUCommandLine` utilityGabriel Gonzalez2020-01-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... as suggested by @roberth
| * | | | | | | | | | | | Use a more realistic example that exercises all encodingsGabriel Gonzalez2019-12-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... as suggested by @roberth This also caught a bug in rendering lists, which this change also fixes
| * | | | | | | | | | | | Make behavior of `encodeGNUCommandLine` customizableGabriel Gonzalez2019-12-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... based on feedback from @edolstra
| * | | | | | | | | | | | Rename `renderOptions` to `encodeGNUCommandLine`Gabriel Gonzalez2019-12-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... as suggested by @edolstra
| * | | | | | | | | | | | Add `pkgs.lib.renderOptions`Gabriel Gonzalez2019-12-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new utility to intelligently convert Nix records to command line options to reduce boilerplate for simple use cases and to also reduce the likelihood of malformed command lines
* | | | | | | | | | | | | Merge pull request #77575 from worldofpeace/home-manager-warnings-dropworldofpeace2020-01-13
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|/ / / / |/| | | | | | | | | | | | lib/types: dont warn loaOf for home-manager namespace