[opam-devel] Patching packages (was Re: [ocaml-platform] A small script for compiler hackers: create short-lived opam switches out of any git branch)

Daniel Bünzli daniel.buenzli at erratique.ch
Mon Apr 8 10:01:58 BST 2013


Le mardi, 19 mars 2013 à 00:56, Daniel Bünzli a écrit :
> Is there a way to specify patches during install ? That is patching an existing package without redoing a package.
>  
> The use case is that I have this patch [1] on ocp-indent that seems unlikely to be integrated (cf. [2]). Now I would like to be able to benefit from ocp-indent's default package updates but just apply the patch before installing.  
>  
> Is there a simple workflow to achieve that ?
The answer to my own question is yes (if you have a git repo with the patch and the package can be installed directly from the repo) :

    opam pin ocp-indent https://github.com/dbuenzli/ocp-indent.git

Just rebase the repo with the patch when needed.

Best,

Daniel




More information about the opam-devel mailing list