Comments (5)
mix archive.build && MIX_HOME=/opt/local/... mix archive.install hex.ez
would do that. You also need to set MIX_HOME
before running any mix tasks that use Hex.
EDIT: Although I am not sure how that will work for other Macports users that have Elixir installed and expect MIX_HOME
to be unset since other things will also be affected by that environment variable.
from hex.
EDIT: Although I am not sure how that will work for other Macports users that have Elixir installed and expect
MIX_HOME
to be unset since other things will also be affected by that environment variable.
Elixir itself is there in Macports (so presumably it will be installed via Macports), but Hex is not, presently. Then, making portfile for Hex, I will set it to depend on port:elixir, that will ensure that Macports’ Elixir is used (if another copy of Elixir is installed, it will be in the path that will not be searched, so hopefully no conflict arises).
from hex.
The mix install
task is only supposed to be used for development and does not support any custom options.
The recommended way to install hex is using the mix local.hex
that ships with Elixir and it will install hex in $HOME/.mix/archives
or $MIX_HOME/archives
.
If you wish to do a local build of Hex you can use mix archive.build
with the -o
flag to specify an output file path. But note mix will load archives from the archive directory location above.
You can also use mix archive.install
to install archives.
You can find the documentation for these tasks here: https://hexdocs.pm/mix/Mix.Tasks.Local.Hex.html
from hex.
@ericmj Thank you for replying. I want to add hex
to Macports, since it is needed to build an Elixir package. For that, we have to build it from source (either tarball or fetch from git branch) and install into destroot (installing directly will violate Macports prefix). In result, all files should be in /opt/local/*
(Macports build system will move everything from ${destroot}${prefix}
into ${prefix}
).
Which option would be suitable for that?
from hex.
Actually, if you use MIX_ARCHIVES
instead of MIX_HOME
it should minimize the risk of conflicts since it is specifically for archives and has no other uses.
from hex.
Related Issues (20)
- Release canditate version resolution incorrect after two digits HOT 3
- Retire a package completely? HOT 3
- Full remove a package from hex.pm HOT 2
- [feature request] Sort `mix hex.outdated` output by status in default output HOT 4
- rebar3_auto - the package in HEX contains module which does not exist in the rebar3_auto repository HOT 1
- Error: Lock is missing HOT 2
- Bundled CA certs are not working now
- Fail to load function 'Elixir.Hex.Netrc.Cache':fetch/1: op make_fun2 u: on Erlang/OTP 27 rc.1
- Publish New Release for Updated CA-Bundle HOT 4
- Bug on dependency resolution for package published on 2/29 HOT 1
- Issues fetching deps HOT 16
- Inspect message is printed on failed compability check HOT 1
- How to generate a fingerprint for public_key? HOT 5
- Suggesstion: Show readme file content on package page HOT 1
- Build .hex/cache.ets file offline for secure build applications HOT 6
- hex dependency resolution shows order dependent behaviour? HOT 1
- Crash during Mix.install([:jason]) HOT 4
- Installing github dependencies broken on main HOT 5
- Could not install Rebar because Mix could not download metadata HOT 1
- Dependency Resolution behaves differently under OTP-26 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hex.