From ff67135accabcb29dda571d6d4cdf2ff53afc500 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= <essen@ninenines.eu>
Date: Tue, 11 Feb 2020 11:56:51 +0100
Subject: Support Hex packages with name different from application

Properly fixes partisan.
---
 doc/src/guide/deps.asciidoc | 26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)

(limited to 'doc/src/guide/deps.asciidoc')

diff --git a/doc/src/guide/deps.asciidoc b/doc/src/guide/deps.asciidoc
index 913fa24..11f09fa 100644
--- a/doc/src/guide/deps.asciidoc
+++ b/doc/src/guide/deps.asciidoc
@@ -169,17 +169,17 @@ The following table lists all existing methods:
 
 [cols="<,2*^",options="header"]
 |===
-| Name           | Format          | Description
-| git            | git repo commit | Clone the Git repository and checkout the given version
+| Name           | Format            | Description
+| git            | git repo commit   | Clone the Git repository and checkout the given version
 | git-subfolder  | git repo commit subfolder | Clone the Git repository, checkout the given version and use one of its subfolders as a dependency
-| git-submodule  | git-submodule   | Initialize and update the Git submodule
-| hg             | hg repo commit  | Clone the Mercurial repository and update to the given version
-| svn            | svn repo        | Checkout the given SVN repository
-| cp             | cp path/to/repo | Recursively copy a local directory
-| ln             | ln path/to/repo | Symbolically link a local directory
-| hex            | hex version     | Download the given project version from hex.pm
-| fail           | N/A             | Always fail, reserved for internal use
-| legacy         | N/A             | Legacy Erlang.mk fetcher, reserved for internal use
+| git-submodule  | git-submodule     | Initialize and update the Git submodule
+| hg             | hg repo commit    | Clone the Mercurial repository and update to the given version
+| svn            | svn repo          | Checkout the given SVN repository
+| cp             | cp path/to/repo   | Recursively copy a local directory
+| ln             | ln path/to/repo   | Symbolically link a local directory
+| hex            | hex version [pkg] | Download the given project version from hex.pm
+| fail           | N/A               | Always fail, reserved for internal use
+| legacy         | N/A               | Legacy Erlang.mk fetcher, reserved for internal use
 |===
 
 The `git` and `hg` methods both have a repository and commit.
@@ -230,6 +230,12 @@ link:https://hex.pm/[Hex repository]:
 [source,make]
 dep_cowboy = hex 1.0.3
 
+If the package on Hex has a different name than the application,
+you can provide it after the version:
+
+[source,make]
+dep_uuid = hex 1.7.5 uuid_erl
+
 ==== Custom fetch methods
 
 If none of the existing methods fit your use, you can simply
-- 
cgit v1.2.3

