Skip to content

Commit

Permalink
[FLORA-498] Add @horizon namespace (#540)
Browse files Browse the repository at this point in the history
* Added cabal.project.repositories file, amended cabal.project and Makefile

* Removed uneeded command in db provisioning call

* Amended CHANGELOG.md and namespaces.md

---------

Co-authored-by: Théophile Choutri <[email protected]>
  • Loading branch information
mau5mat and tchoutri authored Mar 27, 2024
1 parent 8725ed4 commit 4da86c8
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.0.18 -- 2024-03-26

* Add @horizon namespace ([#498](https://github.com/flora-pm/flora-server/issues/498))

## 1.0.17 -- 2024-03-26

* Add `exe:` search modifier to look up packages by executable name ([#529](https://github.com/flora-pm/flora-server/pull/529))
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ db-provision: ## Create categories and repositories
@cabal run -- flora-cli provision categories
@cabal run -- flora-cli provision-repository --name "hackage" --url https://hackage.haskell.org \
--description "Central package repository"
@cabal run -- flora-cli provision-repository --name "cardano" --url https://input-output-hk.github.io/cardano-haskell-packages \
@cabal run -- flora-cli provision-repository --name "cardano" --url https://chap.intersectmbo.org \
--description "Packages of the Cardano project"
@cabal run -- flora-cli provision-repository --name "horizon" --url https://packages.horizon-haskell.net \
--description "Packages of the Horizon project"

db-provision-test-packages: ## Load development data in the database
@cabal run -- flora-cli provision test-packages --repository "hackage"
Expand Down
18 changes: 18 additions & 0 deletions cabal.project.repositories
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
repository cardano
url: https://chap.intersectmbo.org/
secure: True
root-keys:
3e0cce471cf09815f930210f7827266fd09045445d65923e6d0238a6cd15126f
443abb7fb497a134c343faf52f0b659bd7999bc06b7f63fa76dc99d631f9bea1
a86a1f6ce86c449c46666bda44268677abf29b5b2d2eb5ec7af903ec2f117a82
bcec67e8e99cabfa7764d75ad9b158d72bfacf70ca1d0ec8bc6b4406d1bf8413
c00aae8461a256275598500ea0e187588c35a5d5d7454fb57eac18d9edb86a56
d4a35cd3121aa00d18544bb0ac01c3e1691d618f462c46129271bccf39f7e8ee

repository horizon
url: https://packages.horizon-haskell.net/
secure: True
root-keys:
272e995c7a74de109518100e1422193fe5e5971e52c92b98147c9355b47d7bb6
ea5c1bc0944dabe64d9d68c6813a8141d747cda042b870576d7af63a2326c31b
eb47482ddf51da1d3610094f5c57a626d42cfd7d9c248f53e23420b02b21c695
18 changes: 18 additions & 0 deletions docs/docs/namespaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,27 @@ repository cardano
```
and run `cabal update`.

## @horizon Packages

Additionally, Flora also indexes the packages from the [Horizon](https://packages.horizon-haskell.net/) project.
These packages live under the [`@horizon`] namespace.

To use them in your own project, insert the following configuration in your `cabal.project` file:
```
repository horizon
url: https://packages.horizon-haskell.net/
secure: True
root-keys:
272e995c7a74de109518100e1422193fe5e5971e52c92b98147c9355b47d7bb6
ea5c1bc0944dabe64d9d68c6813a8141d747cda042b870576d7af63a2326c31b
eb47482ddf51da1d3610094f5c57a626d42cfd7d9c248f53e23420b02b21c695
```
and run `cabal update`.

[`@haskell`]: https://flora.pm/packages/@haskell
[`@cardano`]: https://flora.pm/packages/@cardano
[`@hackage`]: https://flora.pm/packages/@hackage
[`@horizon`]: https://flora.pm/packages/@horizon
[`@hackage/servant-server`]: https://flora.pm/packages/@hackage/servant-server
[`@haskell/text`]: https://flora.pm/packages/@haskell/text
[CHaP]: https://input-output-hk.github.io/cardano-haskell-packages

0 comments on commit 4da86c8

Please sign in to comment.