Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Configure CI for NixOS #600

Merged
merged 1 commit into from
Nov 14, 2022
Merged

ci: Configure CI for NixOS #600

merged 1 commit into from
Nov 14, 2022

Conversation

Et7f3
Copy link
Contributor

@Et7f3 Et7f3 commented Oct 22, 2022

fix #473

you'd need to maintain a mapping from ocaml dependencies to NixOS packages

You have opam2nix used in dune repo that convert automatically or you have curated list (by human) in nixpkgs

You have two workflow:

  • one low maintenance but not 100% reproductible (enough to reproduce most issue): You import definition already written in Nixpkgs and you update a little bit for your local dev. The con is you don't get lock file.
  • another 100% reproductible is with flake like dune you commit a flake.nix and flake.lock

I opted for the solution with lower maintenance. It should catch most issue with NixOS + if a nix user want an old version it can always checkout an old version of nixpkgs (that is 100% reproductible) so it I would opt to avoid double maintenance.

Is it preferable to have all package's check enabled even the failing one or disabling them is fine ? What is mirage policy ? (Here I build all version without saving exit code so it it green)

@Et7f3 Et7f3 force-pushed the add-nix-ci branch 5 times, most recently from 804b521 to 72fed2c Compare October 22, 2022 01:26
@dinosaure
Copy link
Member

Thanks!

dinosaure added a commit to dinosaure/opam-repository that referenced this pull request Dec 7, 2022
CHANGES:

- Add the NixOS CI to test `ocaml-git` (@Et7f3, mirage/ocaml-git#600, mirage/ocaml-git#473)
- Specify few more headers fields when we fetch/push via HTTP (@reynir, @hannesm, @dinosaure, mirage/ocaml-git#603, mirage/ocaml-git#601)
- Improve the error message about `Smart_git.Endpoint.of_string` (@reynir, @dinosaure, mirage/ocaml-git#605, mirage/ocaml-git#604)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

> I will try to find a CI about NixOS on the other side.
2 participants