Commit graph

341 commits

Author SHA1 Message Date
Naïm Camille Favier 74ed61a915
Display deprecated channels (#489) 2022-06-08 01:55:26 +02:00
Naïm Camille Favier 75e8457105
flake-info: Stop relying on user's NIX_PATH for flake extraction (#487) 2022-06-06 12:42:40 +02:00
github-actions[bot] 2935082bba
flake.lock: Update (#479)
Flake lock file updates:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/a4b154ebbdc88c8498a5c7b01589addc9e9cb678' (2022-04-11)
  → 'github:numtide/flake-utils/1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1' (2022-05-30)
• Updated input 'nixos-org-configurations':
    'github:NixOS/nixos-org-configurations/34b9422847c5b67cbdbe26b89201b3354557f677' (2022-05-25)
  → 'github:NixOS/nixos-org-configurations/8e8668be80e6d3b6f5f602770dca42e6c6f33d50' (2022-06-03)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/c777cdf5c564015d5f63b09cc93bef4178b19b01' (2022-05-05)
  → 'github:NixOS/nixpkgs/236cc2971ac72acd90f0ae3a797f9f83098b17ec' (2022-06-03)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-05 21:23:46 +02:00
Janne Heß 1bf3ce7c98
Add the 22.05 channel by updating the flake (#484) 2022-05-28 13:47:42 +02:00
Naïm Camille Favier d0ea61ad4e
Rely on upstream for extracting nixpkgs options (#460)
* flake-info: rely on upstream for extracting nixpkgs options

Use the `options.json` generated in nixpkgs to be more in sync with the
manual.

Also fixes usage of `nixpkgs-archive` with local paths.

* Bump VERSION
2022-05-19 12:57:42 +02:00
dependabot[bot] 3b41f2dcfd
Dependabot(deps): Bump DeterminateSystems/update-flake-lock from 8 to 9 (#476)
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 8 to 9.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v8...v9)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-11 21:03:24 +02:00
github-actions[bot] bd4ecb50c4
flake.lock: Update (#477)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-08 17:51:09 +02:00
Rok Garbas eea6cd3ffb
Feat/dynamic import (#473)
* Make the channel importer versions dynamic

* few things fromt he list

1. add nixos-org-configurations as input to flake.nix
2. evaluate channels.nix file and export channels via environment variable.
   that environment variable (lets call it NIXOS_CHANNELS) should be present
   during the build and inside the nix shell. the content of the variable can
   be JSON.
3. we pickup the NIXOS_CHANNELS environment variable in
   frontend/webpack.config.js and pass it further to webpack process, just
   like we do with ELASTICSEARCH_MAPPING_SCHEMA_VERSION.
4. we forward NIXOS_CHANNELS to Elm via frontend/src/index.js as an Elm
   application flag. Just like we do with other variables there.

* Decode nixosChannels in Elm

* Use nixosChannels that came via application flag

* read nixos channels in github action

* defaultNixOSChannel should be calculated

* add two pointers where the check should be added

* pass nixosChannels to flake-info and remove title, rather calculate it

* Add NixosChannels struct validation and validation Error

* Read NIXOS_CHANNEL variable

* Check channel

* Add channel struct to fix parsing NIXOS_CHANNELS

* Use `eachDefaultSystem` instead of listing them manually

* Add individual dev shells for frontend and backend

* Update .github/workflows/import-to-elasticsearch.yml

Co-authored-by: Naïm Favier <n@monade.li>

* use both development environments by default (as it was)

but still provide devShells for each of the subprojects

* pkgs.lib → lib everywhere

and define lib = nixpkgs.lib before the call to eachDefaultSystem
Also, version = lib.fileContents ./VERSION;

* Update flake.nix

Co-authored-by: Naïm Favier <n@monade.li>

* typo

* bumping version to test the changes to import-to-elasticsearch github action

* some invisibile characters needed to be removed

* typo

* will this work

* typo

* forgot the checkout step

* add some debugging

* typo

* read NIXOS_CHANNELS from environment not via argument

* fix for the NIXOS_CHANNELS variable

Co-authored-by: Janne Heß <janne@hess.ooo>
Co-authored-by: ysndr <me@ysndr.de>
Co-authored-by: Naïm Favier <n@monade.li>
2022-04-24 23:48:01 +02:00
github-actions[bot] 492794fad7
flake.lock: Update (#475)
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/75ad56bdc927f3a9f9e05e3c3614c4c1fcd99fcb' (2022-04-16)
  → 'github:NixOS/nixpkgs/bc41b01dd7a9fdffd32d9b03806798797532a5fe' (2022-04-23)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-24 23:28:48 +02:00
Naïm Favier f1003d2423
Make the Netlify bot quieter (#474) 2022-04-21 09:12:19 +02:00
Naïm Favier 0f82c57043
Use stable nix (#472)
Nix 2.8 was released so we don't need nixUnstable anymore.
2022-04-20 20:53:10 +02:00
github-actions[bot] d9ed3dbf06
flake.lock: Update (#471)
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5181d5945eda382ff6a9ca3e072ed6ea9b547fee' (2022-04-15)
  → 'github:NixOS/nixpkgs/75ad56bdc927f3a9f9e05e3c3614c4c1fcd99fcb' (2022-04-16)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-20 20:52:51 +02:00
Naïm Favier 025557e8c1
Update flake inputs (#470)
The nixpkgs PR has landed so go back to following nixos-unstable
2022-04-15 20:53:53 +02:00
dependabot[bot] e0a28e41bf
Dependabot(deps): Bump cachix/install-nix-action from 16 to 17 (#468)
* Dependabot(deps): Bump cachix/install-nix-action from 16 to 17

Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 16 to 17.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v16...v17)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* No need to mess with GITHUB_PATH anymore

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Naïm Favier <n@monade.li>
2022-04-08 09:47:38 +02:00
Naïm Favier ff22728d9a
Fix display of null and missing defaults and examples (#457)
* 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>
2022-04-07 23:57:35 +02:00
Rok Garbas 808e929a71
Update flake inputs (#467)
* 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)
2022-04-07 23:36:07 +02:00
legendofmiracles 9315e259b6
Add nixvim to public flakes (#387)
Co-authored-by: Rok Garbas <rok@garbas.si>
2022-04-07 23:29:10 +02:00
Gasper Vozel d97ec86253
Update Development section in README.md (#466)
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>
2022-04-07 23:13:06 +02:00
Julio Sueiras 4e5570f27b
Add Nix-security for flake list (#463) 2022-04-07 17:47:24 +02:00
Naïm Favier 6ba56bc7e9
flakes/manual: add hydra (#461) 2022-04-02 00:05:03 +02:00
Rok Garbas b389e378c2
Some frontend cleanup (#459)
* 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
2022-03-31 16:32:28 +02:00
Naïm Favier b316bc13cc
Workflow improvements (#458)
- 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
2022-03-30 20:45:35 +02:00
Naïm Favier 5798bb000e
Show default outputs (#452)
* 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
2022-03-27 15:52:54 +02:00
Naïm Favier b2e0ce28fc
flake-info: enforce minimal nix version (#451)
Co-authored-by: Yannik Sander <me@ysndr.de>
2022-03-18 21:57:28 +01:00
Rok Garbas 26caeaf488
Cleanup (#450)
* 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
2022-03-17 23:00:10 +01:00
Naïm Favier 6e2650b6d3
flake-info: don't allow options to evaluate disallowed packages (#449)
Options shouldn't evaluate packages in documentation attributes.
These are errors that should be fixed in nixpkgs, which
https://github.com/NixOS/nixpkgs/pull/136909 did.
2022-03-17 22:31:30 +01:00
Yannik Sander d2ca8bb5c9
Import Nixpkgs from path (#445) 2022-03-17 08:14:36 +01:00
jgart 7e00649bda
fix typo (#448) 2022-03-17 08:13:53 +01:00
Naïm Favier f80d3ea4b2
flake: set flake-info as default package (#446)
Makes more sense to have the CLI tool as default package.
2022-03-16 18:49:23 +01:00
Naïm Favier 7be68b6dc0
Show package outputs (#419)
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
2022-03-16 10:43:20 +01:00
dependabot[bot] a5b2b8f0e5
Dependabot(deps): Bump actions/checkout from 2 to 3 (#441)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 12:05:42 +01:00
P 161433f1b1
Adding my repos to public flakes (#440)
* flakes: add stream-alert-bot

* flakes: add python-trovo

* flakes: add multifirefox

* Update flakes/manual.toml

Co-authored-by: Yannik Sander <me@ysndr.de>
Co-authored-by: Yannik Sander <accounts@ysndr.de>
2022-03-01 14:06:27 +01:00
Yannik Sander 33da3a4a0c
Add group reports for flake-group check (#436)
* `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
2022-03-01 13:50:18 +01:00
Yannik Sander d098ad2acb
Filter frontend triggers (#437) 2022-02-28 16:27:28 +01:00
Naïm Favier 188d3a25c8
CI: enable globstar (#439)
* CI: enable globstar
2022-02-28 16:19:31 +01:00
Naïm Favier ba7f332a49
CI: do shallow clones (#438) 2022-02-28 16:16:33 +01:00
Yannik Sander 2b7ce58d2f
Use composite action to reuse setup steps (#433)
* 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>
2022-02-28 00:10:09 +01:00
Yannik Sander 96eeff25d3
Add github action to check flake groups (#432)
* 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>
2022-02-28 00:02:11 +01:00
lewo aebdd3da75
Add nixos-mailserver to the flakes index (#377) 2022-02-25 09:45:12 +01:00
Yusuf Bera Ertan 4795fe3a52
feat: add nix-cargo-integration and rust-nix-templater flakes (#359)
* feat: add nix-cargo-integration and rust-nix-templater flakes

* Add missing newline

Co-authored-by: Yannik Sander <me@ysndr.de>
2022-02-23 21:35:46 +01:00
Sridhar Ratnakumar e8753a385e
Add emanote (#408)
https://emanote.srid.ca

Co-authored-by: Yannik Sander <me@ysndr.de>
Co-authored-by: Rok Garbas <rok@garbas.si>
2022-02-23 21:26:34 +01:00
Finn Behrens c40f5a63a8
flakes: add PolyMC flake info (#428)
LINK: https://polymc.org
LINK: https://github.com/PolyMC/PolyMC
2022-02-23 21:24:57 +01:00
Renaud 38de95ce40
Improve short package details readability (#429)
* 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"
2022-02-23 21:22:18 +01:00
Naïm Favier b4163eb8b2
Authenticate to the GitHub API in workflows (#425) 2022-02-05 15:24:16 +01:00
Naïm Favier bb82e171f8
flake: add nixos-search.cachix.org to substituters (#422) 2022-01-25 17:30:21 +01:00
Naïm Favier ec4dbe03a4
Print underlying serialisation errors (#417) 2022-01-25 16:03:21 +01:00
Naïm Favier 7d80f60fd9
Pass --meta to nix-env (#421)
Since Nix 2.6 (https://github.com/NixOS/nix/pull/5883) nix-env doesn't
output the `meta` attribute unless this flag is passed.
2022-01-25 16:02:29 +01:00
Naïm Favier a8275b15a1
CI: don't fail-fast (#418) 2022-01-24 18:47:19 +01:00
Naïm Favier 5a40a2c43a
Drop 20.09 channel (#416) 2022-01-17 23:28:01 +01:00
Naïm Favier f31e580e52
Clean up workflows (#415)
* Clean up workflows

* Rename workflow files

* Temporarily enable workflows from PR

* Add nixpkgs channel to NIX_PATH

* Fix typo

* Fix index names for warmup

* Build verbosely

* Fix index names again

* Re-add jq

* Revert "Temporarily enable workflows from PR"

This reverts commit dd040e94645d9e61b80505471f57b1c0e35b1210.
2022-01-17 12:18:00 +01:00