...for some value of "support". For now, just skip them without causing
an error. Later, maybe figure out a way to display them properly.
An example of a pattern is `lib.systems.inspect.patterns.isGnu`.
Co-authored-by: Rok Garbas <rok@garbas.si>
* flake-info: fix import of `null` defaults and examples
Currently they're being treated as missing fields, and hence displayed
as "Not given" on the frontend.
* Bump VERSION
* frontend/Options: don't show missing fields
Co-authored-by: Rok Garbas <rok@garbas.si>
* Show default outputs
Following https://github.com/NixOS/nix/pull/6242, we now have access to
default outputs so we can single them out in the frontend.
We can also drop `--out-path`, which speeds up import quite a lot and
doesn't require increasing swap space or allowing broken/unfree
packages anymore.
* Use nixUnstable in CI
* Bump VERSION
As mentioned in [^1] this PR includes a bump in swap size of the github action evaluating nixpkgs.
This is subject to change once a tentative change to Nix is merged.
^1: https://github.com/NixOS/nixos-search/pull/419#issuecomment-1065356169
—
* flake-info: use packages-config.nix straight from nixpkgs
No need to override anything anymore, see discussion at
https://github.com/NixOS/nixos-search/pull/343#issuecomment-1021147104
* flake-info: query package outputs
`package_outputs` is now set to the actual outputs of the derivation
instead of `meta.outputsToInstall`
Also updates nixpkgs to get Rust 1.57 which has HashMap.into_keys
* frontend: show package outputs
* Drop 21.05 channel
* Increase swap space in import-nixpkgs worker
* Bump VERSION
* frontend: improvements and refactoring
- move licenses to the end (without a line break)
- pluralise "Licenses:" conditionally
- change the homepage emoji from a house to a world
- replace backwards List.append pipelines with ++ chains
- avoid text nodes in <ul> outside of <li>
- improve rendering of maintainers
* frontend: sort package outputs
* flake_info.nix: remove helper fn `default`
Nix has builtin syntax for fetching attrs with a default value.
* flake_info.nix: minor refactor
- Remove commented out code
- Simplify pkg filtering
- Break overlong line
* flake_info.nix: support flake attr `nixosModule`
* Support default modules in rust backend and elm
Co-authored-by: Yannik Sander <me@ysndr.de>
* Extract pandoc function to own module
* Bump schema version
* Make string handling more explicit
* Update logging and pandoc crates
* Improve serializing error handling
* Serialize values as string (for elastic)
* Perform option doc parsing entirely in rust
* Show non pandoc'ed results as code elements
* Parse correct html string
* Change expected `option_type` type to String
* Allow treat string unparsable as html like non-docbook strings
* Improve deserializing error reporting using serde_path_to_error
* Format code