Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2023-06-01 | Merge pull request #234070 from tweag/pathType-tests | Robert Hensing | 4 | -103/+110 | |
Init `nixVersions.minimum` and fix `lib` tests for all Nix versions | |||||
2023-06-01 | lib/tests: Also run with nixVersions.minimum and nixVersions.unstable | Silvan Mosberger | 1 | -48/+58 | |
The previous commits ensure that the tests also succeed with those versions | |||||
2023-06-01 | lib/tests: Fix when run with Nix 2.3 | Silvan Mosberger | 2 | -10/+15 | |
2023-06-01 | lib/tests/filesystem.sh: Check success and failure separately | Silvan Mosberger | 1 | -46/+37 | |
2023-06-01 | lib.systems.doubles: add big-endian MIPS linux doubles | Alyssa Ross | 2 | -5/+5 | |
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. | |||||
2023-06-01 | lib.systems: remove mipsisa(32|64)r6 triples | Alyssa Ross | 2 | -20/+10 | |
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. | |||||
2023-05-31 | lib.concatMapAttrs: Simplify stack trace | Robert Hensing | 1 | -1/+5 | |
2023-05-25 | lib.filesystem.pathType: Fix tests for Nix >= 2.14 | Silvan Mosberger | 1 | -2/+3 | |
2023-05-23 | Merge pull request #224834 from tweag/pathType-and-co | Robert Hensing | 5 | -22/+197 | |
Improvements to pathType, pathIsDirectory and pathIsRegularFile | |||||
2023-05-22 | 23.11 is Tapir 23.11-pre | Raito Bezarius | 1 | -1/+1 | |
2023-05-22 | Merge pull request #233050 from NixOS/bsl-is-redistributable | Ryan Lahfa | 1 | -0/+1 | |
lib/licenses: Business Source License 1.1 is redistributable | |||||
2023-05-22 | lib/filesystem.nix: Update top comment | Silvan Mosberger | 1 | -1/+3 | |
Co-Authored-By: Robert Hensing <robert@roberthensing.nl> | |||||
2023-05-22 | lib.filesystem.pathType: Use new builtins.readFileType if available | Silvan Mosberger | 1 | -11/+15 | |
Co-Authored-By: Robert Hensing <robert@roberthensing.nl> | |||||
2023-05-22 | lib.filesystem.pathType and co.: Improve documentation | Silvan Mosberger | 1 | -3/+40 | |
2023-05-22 | lib.filesystem.pathType: Improve error for non-existent paths | Silvan Mosberger | 2 | -1/+6 | |
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| | |||||
2023-05-22 | lib.filesystem.pathType: Fix for filesystem root argument | Silvan Mosberger | 2 | -1/+9 | |
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. | |||||
2023-05-22 | lib.filesystem: Minor refactor | Silvan Mosberger | 1 | -4/+6 | |
Co-Authored-By: Robert Hensing <robert@roberthensing.nl> | |||||
2023-05-22 | lib.filesystem.pathType and co.: Add tests | Silvan Mosberger | 2 | -0/+91 | |
Co-Authored-By: Robert Hensing <robert@roberthensing.nl> | |||||
2023-05-22 | Merge pull request #232808 from ncfavier/mkPackageOption-nullable | Robert Hensing | 3 | -7/+38 | |
lib/options: nullable mkPackageOption | |||||
2023-05-22 | lens: Change lens' listed license from MIT to their own proprietary license. | Martin Wurm | 1 | -0/+6 | |
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. | |||||
2023-05-20 | lib/licenses: Business Source License 1.1 is redistributable | Raito Bezarius | 1 | -0/+1 | |
It is written in its text, still unfree though and cannot be used for *production*. | |||||
2023-05-20 | lib/tests: add mkPackageOption tests | Naïm Favier | 2 | -0/+24 | |
2023-05-19 | lib: fix typos | figsoda | 1 | -1/+1 | |
2023-05-19 | lib/options: nullable mkPackageOption | Naïm Favier | 1 | -7/+14 | |
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. | |||||
2023-05-17 | lib.types.submoduleWith: Interoperate with older version of submoduleWith | Robert Hensing | 1 | -3/+5 | |
2023-05-15 | licenses: add CC-BY-NC-ND-4.0 | COLAMAroro | 1 | -0/+6 | |
2023-05-15 | Merge pull request #210461 from benwbooth/jxplorer | Sandro | 1 | -0/+5 | |
2023-05-12 | JXplorer: init at 3.3.1.2 | Ben Booth | 1 | -0/+5 | |
2023-05-11 | Merge pull request #230523 from hercules-ci/fast-nixos-test-eval | Robert Hensing | 1 | -0/+8 | |
Fast nixos test eval | |||||
2023-05-10 | lib.types.pkgs: init | Robert Hensing | 1 | -0/+8 | |
A nominal type. | |||||
2023-05-09 | lib.systems: remove (accidental?) rust/rustc alias | Alyssa Ross | 1 | -1/+1 | |
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. | |||||
2023-05-09 | Merge pull request #228013 from amjoseph-nixpkgs/pr/qemuArch/mips | Adam Joseph | 1 | -0/+1 | |
lib/systems: add mips64[el] entries to qemuArch | |||||
2023-05-08 | Merge pull request #230353 from ncfavier/defaultText-only | Naïm Favier | 1 | -3/+3 | |
lib/options: fix rendering of options with only a defaultText | |||||
2023-05-07 | Merge master into staging-next | github-actions[bot] | 10 | -49/+261 | |
2023-05-06 | lib.modules: configurationClass -> class | Robert Hensing | 2 | -2/+2 | |
This simplifies the documentation. `configuration` is implied by `_type`. | |||||
2023-05-06 | lib.modules: in evalModules return move _module.class -> configurationClass | Robert Hensing | 2 | -11/+2 | |
2023-05-06 | lib.modules: Change class declaration in module to _class | Robert Hensing | 4 | -10/+10 | |
2023-05-06 | lib/tests/modules.sh: Add submodule + class tests | Robert Hensing | 2 | -1/+49 | |
2023-05-06 | lib/modules: Move class out of specialArgs | Robert Hensing | 3 | -12/+30 | |
2023-05-06 | lib/modules.nix: Deduplicate documentation | Robert Hensing | 1 | -29/+2 | |
`file://./..` looks redundant, but makes the url clickable in vscode. | |||||
2023-05-06 | lib/modules: Only interpret class declaration in non-shorthand mode | Robert Hensing | 4 | -1/+19 | |
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. | |||||
2023-05-06 | lib/modules.nix: Refactor: extract applyModuleArgs | Robert Hensing | 1 | -5/+6 | |
2023-05-06 | lib/modules.nix: Refactor: evaluate applyModuleArgsIfFunction in attrs case | Robert Hensing | 1 | -1/+1 | |
2023-05-06 | lib/modules.nix: Restore old collectModules interface | Robert Hensing | 1 | -1/+1 | |
2023-05-06 | lib/modules: Explain that a configuration can't be loaded as a module | Robert Hensing | 2 | -2/+7 | |
2023-05-06 | lib/modules: Improve error when a configuration is imported | Robert Hensing | 3 | -0/+14 | |
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. | |||||
2023-05-06 | lib/modules: Check against importing things with a _type | Robert Hensing | 4 | -1/+20 | |
2023-05-06 | lib/modules: Add class concept to check imports | Robert Hensing | 5 | -4/+69 | |
This improves the error message when an incompatible module is imported. | |||||
2023-05-06 | lib/modules.nix: Make some functions private | Robert Hensing | 1 | -11/+22 | |
The supposedly public nature of these functions has been holding back module system maintenance, while usages of these functions are expected to be rare. If used anywhere, presumably they're emulating module system behavior because some use case isn't supported properly. We should try to support such a use case directly, if it even exists. | |||||
2023-05-06 | lib/modules.nix: Use explicit exports | Robert Hensing | 1 | -4/+52 | |