Skip to content

How do I use custom opam repository? #96

Answered by balsoft
Blue-Berry asked this question in Q&A
Discussion options

You must be logged in to vote

I've tinkered with this for a bit and it seems that the with-extensions repo is pretty hacky sadly. I've had to add some overrides to get ocaml-variants building, and then build ocamlformat=0.26.2+jst with it:

{
  inputs = {
    opam-nix.url = "github:tweag/opam-nix";
    opam-nix.inputs.opam-repository.follows = "opam-repository";
    flake-utils.url = "github:numtide/flake-utils";
    nixpkgs.follows = "opam-nix/nixpkgs";
    with-extensions.url = "github:janestreet/opam-repository/with-extensions";
    with-extensions.flake = false;
    opam-repository.url = "github:ocaml/opam-repository";
    opam-repository.flake = false;
  };
  outputs =
    {
      self,
      flake-utils,
      op…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@balsoft
Comment options

@balsoft
Comment options

@balsoft
Comment options

@balsoft
Comment options

Answer selected by Blue-Berry
@balsoft
Comment options

@Blue-Berry
Comment options

@balsoft
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants