summaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Expand)AuthorAgeFilesLines
* lib.derivations: fix comment typoYueh-Shun Li2023-06-021-1/+1
* Merge pull request #234070 from tweag/pathType-tests•••Init `nixVersions.minimum` and fix `lib` tests for all Nix versionsRobert Hensing2023-06-014-97/+104
|\
| * lib/tests: Also run with nixVersions.minimum and nixVersions.unstable•••The previous commits ensure that the tests also succeed with those versions Silvan Mosberger2023-06-011-42/+52
| * lib/tests: Fix when run with Nix 2.3Silvan Mosberger2023-06-012-10/+15
| * lib/tests/filesystem.sh: Check success and failure separatelySilvan Mosberger2023-06-011-46/+37
| * lib.filesystem.pathType: Fix tests for Nix >= 2.14Silvan Mosberger2023-05-251-2/+3
* | lib.systems.doubles: add big-endian MIPS linux doubles•••We already have examples for these, but since we didn't actually recognise the doubles, it wasn't possible to build any packages for them without setting allowUnsupportedSystem. Alyssa Ross2023-06-012-5/+5
* | lib.systems: remove mipsisa(32|64)r6 triples•••These arc the same as the normal triples apart for a difference in -march, so there's no need for them to be separate triples. Alyssa Ross2023-06-012-20/+10
* | lib.concatMapAttrs: Simplify stack traceRobert Hensing2023-05-311-1/+5
|/
* Merge pull request #224834 from tweag/pathType-and-co•••Improvements to pathType, pathIsDirectory and pathIsRegularFileRobert Hensing2023-05-235-22/+197
|\
| * lib/filesystem.nix: Update top comment•••Co-Authored-By: Robert Hensing <robert@roberthensing.nl> Silvan Mosberger2023-05-221-1/+3
| * lib.filesystem.pathType: Use new builtins.readFileType if available•••Co-Authored-By: Robert Hensing <robert@roberthensing.nl> Silvan Mosberger2023-05-221-11/+15
| * lib.filesystem.pathType and co.: Improve documentationSilvan Mosberger2023-05-221-3/+40
| * lib.filesystem.pathType: Improve error for non-existent paths•••Previously it would fail with error: attribute 'nonexistent' missing at nixpkgs/lib/filesystem.nix:29:10: 28| if dirOf path == path then "directory" 29| else (readDir (dirOf path)).${baseNameOf path}; | ^ 30| Silvan Mosberger2023-05-222-1/+6
| * lib.filesystem.pathType: Fix for filesystem root argument•••Previously this function couldn't handle / being passed, it would throw an error: error: attribute '' missing at nixpkgs/lib/filesystem.nix:24:20: 23| */ 24| pathType = path: (readDir (dirOf path)).${baseNameOf path}; | ^ 25| Consequently this also fixes the lib.filesystem.{pathIsDirectory,pathIsRegularFile} functions. Silvan Mosberger2023-05-222-1/+9
| * lib.filesystem: Minor refactor•••Co-Authored-By: Robert Hensing <robert@roberthensing.nl> Silvan Mosberger2023-05-221-4/+6
| * lib.filesystem.pathType and co.: Add tests•••Co-Authored-By: Robert Hensing <robert@roberthensing.nl> Silvan Mosberger2023-05-222-0/+91
| * lib.sources.pathType and co.: Move to lib.filesystem•••These functions only work with the filesystem, they don't import anything as sources Silvan Mosberger2023-04-053-21/+47
* | 23.11 is Tapir23.11-preRaito Bezarius2023-05-221-1/+1
* | Merge pull request #233050 from NixOS/bsl-is-redistributable•••lib/licenses: Business Source License 1.1 is redistributableRyan Lahfa2023-05-221-0/+1
|\ \
| * | lib/licenses: Business Source License 1.1 is redistributable•••It is written in its text, still unfree though and cannot be used for *production*. Raito Bezarius2023-05-201-0/+1
* | | Merge pull request #232808 from ncfavier/mkPackageOption-nullable•••lib/options: nullable mkPackageOptionRobert Hensing2023-05-223-7/+38
|\ \ \
| * | | lib/tests: add mkPackageOption testsNaïm Favier2023-05-202-0/+24
| * | | lib/options: nullable mkPackageOption•••It is sometimes useful to allow setting a package option to `null` to skip installing the package. See https://github.com/nix-community/home-manager/pull/3668#issuecomment-1554044171 for example. Naïm Favier2023-05-191-7/+14
* | | | lens: Change lens' listed license from MIT to their own proprietary license.•••Although Lens is based on a free core component ("OpenLens"), the tarballs provided by Mirantis include a proprietary version of Lens that requires a subscription. As the proprietary option offers additional features, it would not be wise to simply rewrite the derivation and base it on the FOSS source code. Instead, implementing a new derivation for OpenLens is likely the better approach. Martin Wurm2023-05-221-0/+6
| |/ / |/| |
* | | lib: fix typosfigsoda2023-05-191-1/+1
|/ /
* | lib.types.submoduleWith: Interoperate with older version of submoduleWithRobert Hensing2023-05-171-3/+5
* | licenses: add CC-BY-NC-ND-4.0COLAMAroro2023-05-151-0/+6
* | Merge pull request #210461 from benwbooth/jxplorerSandro2023-05-151-0/+5
|\ \
| * | JXplorer: init at 3.3.1.2Ben Booth2023-05-121-0/+5
* | | Merge pull request #230523 from hercules-ci/fast-nixos-test-eval•••Fast nixos test evalRobert Hensing2023-05-111-0/+8
|\ \ \
| * | | lib.types.pkgs: init•••A nominal type. Robert Hensing2023-05-101-0/+8
* | | | lib.systems: remove (accidental?) rust/rustc alias•••I imagine this was supposed to be rustc = args.rustc, like the other two lines. This meant that we accepted both rust and rustc attributes, with the same effect. I doubt anybody was using the undocumented, probably-accidental "rust" spelling, but we should remove it before somebody starts. In fact, we don't need to set rustc here at all, because no value platforms.select could return will ever include a rustc key (unlike the other two), so then rustc will be filled in later, when args is merged into final. Alyssa Ross2023-05-091-1/+1
* | | | Merge pull request #228013 from amjoseph-nixpkgs/pr/qemuArch/mips•••lib/systems: add mips64[el] entries to qemuArchAdam Joseph2023-05-091-0/+1
|\ \ \ \
| * | | | lib/systems: add mips64[el] entries to qemuArch•••This commit adds `mips64el` to the `qemuArch` table. Adam Joseph2023-04-241-0/+1
* | | | | Merge pull request #230353 from ncfavier/defaultText-only•••lib/options: fix rendering of options with only a defaultTextNaïm Favier2023-05-081-3/+3
|\ \ \ \ \
| * | | | | lib/options: fix rendering of options with only a defaultText•••Some options have their default value set in the `config` instead of `default`, for example to push `mkDefault`s down an attribute set. In those cases, it's useful to provide a `defaultText` for informational purposes. Naïm Favier2023-05-061-3/+3
* | | | | | Merge master into staging-nextgithub-actions[bot]2023-05-0710-49/+261
|\ \ \ \ \ \ | | |_|/ / / | |/| | | |
| * | | | | lib.modules: configurationClass -> class•••This simplifies the documentation. `configuration` is implied by `_type`. Robert Hensing2023-05-062-2/+2
| * | | | | lib.modules: in evalModules return move _module.class -> configurationClassRobert Hensing2023-05-062-11/+2
| * | | | | lib.modules: Change class declaration in module to _classRobert Hensing2023-05-064-10/+10
| * | | | | lib/tests/modules.sh: Add submodule + class testsRobert Hensing2023-05-062-1/+49
| * | | | | lib/modules: Move class out of specialArgsRobert Hensing2023-05-063-12/+30
| * | | | | lib/modules.nix: Deduplicate documentation•••`file://./..` looks redundant, but makes the url clickable in vscode. Robert Hensing2023-05-061-29/+2
| * | | | | lib/modules: Only interpret class declaration in non-shorthand mode•••This is to avoid stealing keys from submodules. `class` might be common enough that reinterpreting existing `class` attributes in configurations as a declaration leads to fairly widespread problems. Robert Hensing2023-05-064-1/+19
| * | | | | lib/modules.nix: Refactor: extract applyModuleArgsRobert Hensing2023-05-061-5/+6
| * | | | | lib/modules.nix: Refactor: evaluate applyModuleArgsIfFunction in attrs caseRobert Hensing2023-05-061-1/+1
| * | | | | lib/modules.nix: Restore old collectModules interfaceRobert Hensing2023-05-061-1/+1
| * | | | | lib/modules: Explain that a configuration can't be loaded as a moduleRobert Hensing2023-05-062-2/+7
| * | | | | lib/modules: Improve error when a configuration is imported•••This is appears to be a fairly common mistake for beginners who want to build larger things from the system configurations, such as NixOps networks, etc. Further explanation seems appropriate. Robert Hensing2023-05-063-0/+14