* 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>
* Add github workflow to update flake inputs weekly
also including initial flake.lock update.
* Use a different nixpkgs for the time being (until PR is merged)
Add additional details on how to install and deploy local
development server.
Co-authored-by: Yannik Sander <accounts@ysndr.de>
Co-authored-by: Rok Garbas <rok@garbas.si>
* remove Debug.log statements
* move View.Components.SearchInput.viewBucket into Search module
* combine 2 version of viewSearchInput
* moving viewFlakes function to Search module
and removing View.Components.SearchInput module
* removing View.Components module
* use :: instead of List.append
- Separate building flake-info into a new workflow that's triggered on push
and on relevant pull requests
- Move frontend-related files into a `frontend` subdirectory
* 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
* add direnv support
* elm format
* use flake-utils
* remove unused parts of the code
* only use one workflow to import things
* Build flake-info in separate job
* DEBUG
* Revert "DEBUG"
This reverts commit 6c335e6bd2ba450f1891efe70dfd9bb95f300b31.
* RUST_LOG is a runtime thing
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
* `nix flake {info -> metadata}`
* Fix error variant for io errors
* Enable backtrace support for anyhow
* Improve error printing
* Write error report file
* Format workflow file
* Use report file
* Set non-zero exit status if a group fails
* Do not use `local`
* Apply suggestions from review
* Move exit outside the loop
* Fix multi line output
* Fix var substitution
* Different work around for multi lines
* Add github action to check flake groups
* Run on pull_requests and filter ~files~ *paths*
* Use composite action to reuse setup steps
* Use common setuo for frontend action
* Fix path to action
* Remove checkout action from common setup
Checkout needed to fetch action
* Provide secrets to action
Co-authored-by: Rok Garbas <rok@garbas.si>
* Add github action to check flake groups
* Run on pull_requests and filter ~files~ *paths*
Co-authored-by: Marek Fajkus <marek.faj@gmail.com>
Co-authored-by: Naïm Favier <n@monade.li>
* put licenses list on it own line and separate each license with a small black square
* display package name as a code block
* display version number in bold
* add a 'house with garden' emoji before "Homepage"
* add a 'package' emoji before "Source"
* 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>
The files in nixos-search and nixpkgs have already unnecessarily
diverged — more than they should given that the only difference is that
the search ignores unfree packages (while nixpkgs includes them for the
benefit of repology).
Since we update the NIX_PATH when calling nix-env in nixpkgs_info.rs, we
can simply import the packages-config.nix from nixpkgs using that
information and update it with our addition `allowUnfree = false`.
Fixes#337.