Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-09-17 | lib/generators.toPretty: Improved string printing, handling newlines | Silvan Mosberger | |
2020-09-17 | lib/generators.toPretty: Implement multiline printing | Silvan Mosberger | |
2020-09-17 | lib/generators.toPretty: Only quote attribute names if necessary | Silvan Mosberger | |
2020-08-24 | Don't set $NIX_DB_DIR | Eelco Dolstra | |
This variable was removed in 2016. | |||
2020-08-15 | Merge pull request #82743 from Infinisil/partially-typed-v2 | Robert Hensing | |
Freeform modules | |||
2020-08-14 | lib/modules: Add syntactic sugar for config._module.freeformType | Silvan Mosberger | |
This introduces `freeformType` as a top-level module attribute, allowing definitions like { freeformType = ...; options = ...; config = ...; } | |||
2020-08-10 | lib/modules: Fix freeform modules when there's no definitions | Silvan Mosberger | |
2020-08-04 | Define a i686-genode system double | Emery Hemingway | |
2020-08-03 | lib/tests: Add tests for freeform modules | Silvan Mosberger | |
2020-07-31 | lib/*: editorconfig fixes | zowoq | |
2020-07-22 | Merge pull request #93568 from aaronjanse/aj-redox | John Ericson | |
Add Redox OS as a target | |||
2020-07-21 | redox: add as target | Aaron Janse | |
2020-07-20 | lib: toHex -> toHexString & toBase -> toBaseDigits | Bas van Dijk | |
This makes the type of these functions more apparent from the name. | |||
2020-07-20 | lib: add the toHex and toBase utility functions | Bas van Dijk | |
`toHex` converts the given positive integer to a string of the hexadecimal representation of that integer. For example: ``` toHex 0 => "0" toHex 16 => "10" toHex 250 => "FA" ``` `toBase base i` converts the positive integer `i` to a list of it digits in the given `base`. For example: ``` toBase 10 123 => [ 1 2 3 ] toBase 2 6 => [ 1 1 0 ] toBase 16 250 => [ 15 10 ] ``` | |||
2020-04-25 | lib/tests: Allow overriding pkgs independent of lib being tested | Silvan Mosberger | |
2020-04-13 | lib/maintainer-list: Implement validity checks | Silvan Mosberger | |
2020-04-13 | lib/tests/release.nix: Avoid importing nixpkgs into the store | Silvan Mosberger | |
Improves build time by about a factor of two on my system | |||
2020-04-13 | lib/tests/modules.sh: Don't depend on $PWD | Silvan Mosberger | |
2020-04-02 | Merge pull request #83241 from Infinisil/valid-drv-name | Silvan Mosberger | |
lib/strings: Add `sanitizeDerivationName` function | |||
2020-03-30 | lib/strings: Add sanitizeDerivationName function | Silvan Mosberger | |
2020-03-24 | lib/systems: Add Genode platform definitions | Emery Hemingway | |
Add platform definitions for 64-bit ARM and x86. This is sufficient for for building Genode where a toolchain is provided as an overlay. Toolchain: git+https://git.sr.ht/~ehmry/genodepkgs?rev=14fc773ac9ecd2cbb30cb4612b284eee83d83546 | |||
2020-03-19 | Merge pull request #82882 from obsidiansystems/armv6-embedded | John Ericson | |
Misc fixes for armv6 bare metal cross | |||
2020-03-19 | lib/tests: Check for nested option-dependent definitions | Silvan Mosberger | |
2020-03-19 | Revert "lib/modules: Throw better error when definitions assign to an option ↵ | Silvan Mosberger | |
set" This reverts commit 15c873b486347e7861c64fb0b5a7852be9fc82e4. This was causing infinite recursion when depending on nested options | |||
2020-03-18 | lib: Fix systems test for new `armv6l-none` | John Ericson | |
2020-03-18 | Merge pull request #82751 from Infinisil/minor-module-improvements | Robert Hensing | |
Minor module improvements | |||
2020-03-18 | lib/modules: Fix type checks not being done before merging | Silvan Mosberger | |
Co-Authored-By: Robert Hensing <robert@roberthensing.nl> | |||
2020-03-18 | lib/modules: Throw better error when definitions assign to an option set | Silvan Mosberger | |
2020-03-17 | lib/modules: Test the ability for config to depend on options for compatibility | Robert Hensing | |
2020-03-10 | lib/generators: Add toINI option for duplicate keys | Silvan Mosberger | |
2020-02-10 | lib/tests/misc.nix: Don't make a copy on Nixpkgs | Eelco Dolstra | |
2020-02-10 | lib/tests/misc.nix: Fix dependency on currentSystem | Eelco Dolstra | |
This doesn't work in pure mode. | |||
2020-01-23 | lib/cli,lib/tests/misc: somewhat more standard formatting | Profpatsch | |
2020-01-23 | lib/cli: encodeGNUCommandLine -> toGNUCommandLineShell | Profpatsch | |
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. | |||
2020-01-14 | Merge pull request #75539 from Gabriel439/gabriel/renderOptions | Robert Hensing | |
Add `pkgs.lib.encodeGNUCommandLine` | |||
2020-01-12 | Merge pull request #76861 from Infinisil/paths-as-submodules | Robert Hensing | |
lib/types: Allow paths as submodule values | |||
2020-01-10 | lib/tests: Add tests for attrsOf and lazyAttrsOf | Silvan Mosberger | |
2020-01-10 | lib/tests: Fix module tests | Silvan Mosberger | |
Fix the broken test in https://github.com/NixOS/nixpkgs/pull/77416 Apparently hydra uses `nix-build lib/tests/release.nix` to run all tests, where IFD isn't allowed. Fortunately we can get around this with builtins.toFile, which doesn't require IFD, but still can test the properties we want. | |||
2020-01-10 | lib/tests: Add test case for imports from derivations | Silvan Mosberger | |
2020-01-09 | Merge pull request #76857 from Infinisil/recursive-disableModules | Silvan Mosberger | |
Apply `disabledModules` recursively | |||
2020-01-09 | lib/tests: Add tests for recursive disabledModules | Silvan Mosberger | |
2020-01-08 | lib/types: Allow paths as submodule values | Silvan Mosberger | |
2020-01-06 | lib/tests: remove strictly loaOf tests and rebase on attrsOf | rnhmjoj | |
2020-01-05 | Factor out a `toGNUCommandLine` utility | Gabriel Gonzalez | |
... as suggested by @roberth | |||
2020-01-03 | lib/tests: Temporarily disable submodule path test | Silvan Mosberger | |
Until https://github.com/NixOS/nixpkgs/pull/76861 or so is merged | |||
2020-01-02 | Module system improvements for NixOS as a submodule (#75031) | Silvan Mosberger | |
Module system improvements for NixOS as a submodule | |||
2020-01-02 | lib/tests: Add submoduleWith tests | Silvan Mosberger | |
2019-12-15 | Use a more realistic example that exercises all encodings | Gabriel Gonzalez | |
... as suggested by @roberth This also caught a bug in rendering lists, which this change also fixes | |||
2019-12-13 | Make behavior of `encodeGNUCommandLine` customizable | Gabriel Gonzalez | |
... based on feedback from @edolstra | |||
2019-12-13 | Rename `renderOptions` to `encodeGNUCommandLine` | Gabriel Gonzalez | |
... as suggested by @edolstra |