serokell / hackage-search

An application that lets you search for anything on Hackage
https://hackage-search.serokell.io/
24 stars 0 forks source link

[OPS-1110] Nix flake #15

Closed mkaito closed 3 years ago

mkaito commented 3 years ago

Before we can start deploying on a new server, we need to wrap it all up in a Nix flake.

The current package expressions were moved mostly as-is to package.nix. We need the shell expression to contain a fresh nixUnstable and the deploy-rs executable, along with anything else you want for development.

The new server sadalbari.pegasus.serokell.team is not yet deployed, infra PR soon https://github.com/serokell/pegasus-infra/pull/2. This will be the canonical server name, and the public DNS name a CNAME to it.

Stable nix should be able to work as expected thanks to the flake-compat wrappers in default.nix and shell.nix. Please do test them to make sure I didn't break your development environment.

This PR also moves the CI build steps to a local .buildkite/pipeline.yml file. I've already modified the pipeline on BK to read this file from the repo. This is a breaking change. Branches that do not have this file will not have CI until this branch is merged.