MixDepsPatch
Task for patching dependencies after downloading from hex, before compilation.
This is an alternative for creating github forks and can be used without git installed.
The only dependency is the patch command.
Usage
create a folder named patch in your app directory
mkdir patchMake a copy of the file you wan’t to patch in the deps folder.
cd deps/dependency_name
git diff > ../../patch/dependency_name.patch
cd ../../and then use it instead of deps.get (mix deps.get is run from this task)
mix deps.patchInstallation
You can either install it globally
mix archive.build
mix archive.install mix_deps_patch-0.0.0.ez
or by adding mix_deps_patch to your list of dependencies in mix.exs:
def deps do
[
{:mix_deps_patch, "~> 0.0.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/mix_deps_patch.