README.md: Add MacPorts to install section
Shad Sterling committed
Jun 27, 2021 at 08:20 UTC
1ea1493ed11b7da6bdf8d06c3f0e3dcf6e34e75c
1 file changed
+28
-3
README.md
+28
-3
@@ -30,6 +30,8 @@ Before opening an issue, consider using one of the following locations to ensure
30
- [System Requirements](#system-requirements)
31
- [Install prebuilt packages](#install-prebuilt-packages)
32
- [From Linux package managers](#from-linux-package-managers)
33
+ - [From Windows package managers](#from-windows-package-managers)
34
+ - [From macOS package managers](#from-macos-package-managers)
35
- [Build from Source](#build-from-source)
36
- [Install Go](#install-go)
37
- [Download and Compile IPFS](#download-and-compile-ipfs)
@@ -83,7 +85,7 @@ You can also download go-ipfs from this project's GitHub releases page if you ar
85
### From Linux package managers
86
87
- [Arch Linux](#arch-linux)
86
-- [Nix](#nix)
88
+- [Nix](#nix-linux)
89
- [Solus](#solus)
90
- [Snap](#snap)
91
@@ -100,9 +102,9 @@ Development version of go-ipfs is also on AUR under
102
[go-ipfs-git](https://aur.archlinux.org/packages/go-ipfs-git/).
103
You can install it using your favorite AUR Helper or manually from AUR.
104
103
-#### Nix
105
+#### <a name="nix-linux">Nix</a>
106
105
-For Linux and MacOSX you can use the purely functional package manager [Nix](https://nixos.org/nix/):
107
+For Linux and macOS you can use the purely functional package manager [Nix](https://nixos.org/nix/):
108
109
```
110
$ nix-env -i ipfs
@@ -158,6 +160,29 @@ PS> scoop bucket add extras
160
PS> scoop install go-ipfs
161
```
162
163
+### From macOS package managers
164
+
165
+- [MacPorts](#macports)
166
+- [Nix](#nix-macos)
167
+
168
+#### MacPorts
169
+
170
+The package [ipfs](https://ports.macports.org/port/ipfs) currently points to go-ipfs and is being maintained.
171
+
172
+```
173
+$ sudo port install ipfs
174
+```
175
+
176
+#### <a name="nix-macos">Nix</a>
177
+
178
+For macOS and Linux you can use the purely functional package manager [Nix](https://nixos.org/nix/):
179
+
180
+```
181
+$ nix-env -i ipfs
182
+```
183
+
184
+You can also install the Package by using its attribute name, which is also `ipfs`.
185
+
186
### Build from Source
187
188
go-ipfs's build system requires Go 1.15.2 and some standard POSIX build tools: