Commit graph

258 commits

Author SHA1 Message Date
MatthewCroughan a76f3f779c
Show nix-shell instructions first instead of NixOS Configuration (#526) 2022-08-29 13:23:49 +02:00
github-actions[bot] a52737a3cc
flake.lock: Update (#515)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-28 23:19:51 +02:00
Naïm Favier d94c60ca12
frontend: remove trailing whitespace in installation instructions (#522) 2022-08-25 18:33:15 +02:00
Philip Munksgaard 1aaf7dddee
Add geomyidae server flake to public flakes (#516) 2022-08-23 16:43:28 +02:00
Philip Munksgaard 9e5f095369
Add support for sourcehut links (#517)
* Add support for SourceHut flakes

* Update flake-info/README.md

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

Co-authored-by: Naïm Favier <n@monade.li>
2022-08-23 14:42:06 +02:00
Yvan Sraka 087925bbb2
Add haskell.nix (#518) 2022-08-18 13:00:31 +02:00
MatthewCroughan f504a9fdd7
encourage NixOS configuration, nix-shell and discourage nix-env (#514)
Co-authored-by: Naïm Favier <n@monade.li>
2022-08-11 15:35:57 +02:00
github-actions[bot] 02c3d7088c
flake.lock: Update (#498)
Flake lock file updates:

• Updated input 'nixos-org-configurations':
    'github:NixOS/nixos-org-configurations/a02a620f56cee88299d479f51676ca3f2a6c4a82' (2022-07-04)
  → 'github:NixOS/nixos-org-configurations/f467c27834fddeb1ffe156c54b637db240bc7273' (2022-07-29)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/0ea7a8f1b939d74e5df8af9a8f7342097cdf69eb' (2022-07-02)
  → 'github:NixOS/nixpkgs/93c57a988470c1948976b1bb70abbd5855c5b810' (2022-08-05)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-08 08:59:58 +02:00
Robert Hensing 1faac2eeb6
Remove Loading from title (#507)
It used to show up in discourse links, looking silly.

"Loading" didn't really add information. If it loads slowly or not
at all, the result will be quite obvious, and often the bit that
says "Loading" doesn't even fit in the browser tab label.
2022-08-02 22:09:34 +02:00
erikarvstedt 0453790a74
Flakes search: Include flake name (#499) 2022-07-28 15:11:00 +02:00
Naïm Camille Favier fd53fda132
flake-info: remove --read-only (#504) 2022-07-24 13:07:31 +02:00
Naïm Camille Favier c43ed8c85f
Disallow IFD in flakes (#502)
I think it is surprising that `flake-info` tries to build things in
order to index flakes. Hence, forbid IFD.

`--read-only` is for performance, see https://github.com/NixOS/nix/pull/6323
2022-07-21 12:27:21 +02:00
Naïm Camille Favier 18e5da679b
Don't panic during export (#501) 2022-07-21 12:20:52 +02:00
github-actions[bot] 79f6678b23
flake.lock: Update (#495)
Flake lock file updates:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/bee6a7250dd1b01844a2de7e02e4df7d8a0a206c' (2022-06-24)
  → 'github:numtide/flake-utils/7e2a3b3dfd9af950a856d66b0a7d01e3c18aa249' (2022-07-04)
• Updated input 'nixos-org-configurations':
    'github:NixOS/nixos-org-configurations/a5e623b9729601da2b51368287bb623afd7b9ffc' (2022-06-23)
  → 'github:NixOS/nixos-org-configurations/a02a620f56cee88299d479f51676ca3f2a6c4a82' (2022-07-04)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/6141b8932a5cf376fe18fcd368cecd9ad946cb68' (2022-06-23)
  → 'github:NixOS/nixpkgs/0ea7a8f1b939d74e5df8af9a8f7342097cdf69eb' (2022-07-02)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-04 20:06:31 +02:00
Naïm Camille Favier 7e0226d427
frontend: select package name on click (#497)
Fixes https://github.com/NixOS/nixos-search/issues/496
2022-07-04 12:59:23 +02:00
dependabot[bot] 398253d3eb
Dependabot(deps): Bump DeterminateSystems/update-flake-lock from 9 to 10 (#494)
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 9 to 10.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v9...v10)

---
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-06-30 11:23:24 +02:00
github-actions[bot] b32155232e
flake.lock: Update (#491)
Flake lock file updates:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1' (2022-05-30)
  → 'github:numtide/flake-utils/bee6a7250dd1b01844a2de7e02e4df7d8a0a206c' (2022-06-24)
• Updated input 'nixos-org-configurations':
    'github:NixOS/nixos-org-configurations/8e8668be80e6d3b6f5f602770dca42e6c6f33d50' (2022-06-03)
  → 'github:NixOS/nixos-org-configurations/a5e623b9729601da2b51368287bb623afd7b9ffc' (2022-06-23)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/236cc2971ac72acd90f0ae3a797f9f83098b17ec' (2022-06-03)
  → 'github:NixOS/nixpkgs/6141b8932a5cf376fe18fcd368cecd9ad946cb68' (2022-06-23)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-30 11:22:53 +02:00
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