Commit Graph

13 Commits

Author SHA1 Message Date
Yuka
3db4201bc8
mixRelease: allow specifying buildInputs (#156288) 2022-01-23 23:13:53 +09:00
Sergei Maximov
2a9336b426 elixir-ls: build LS using the same Elixir version that is used to run LS
The Elixir LS package in Nixpkgs by default used the latest Elixir
version available to compile and run Elixir LS. The user can build
a custom Elixir LS package with a different Elixir version:

    my-custom-elixir-ls = pkgs.elixir-ls.override {
      elixir = my-custom-elixir;
    };

But by doing so the user changes only the Elixir version used to
run Elixir LS; the Elixir version used to compile Elixir LS doesn't
change. As the result, the custom Elixir LS package uses a different
Elixir version at runtime than the Elixir version it was compiled with.

In order to be able to modify the Elixir version used at build time,
I changed `mixRelease` and `fetchMixDeps` to accept `elixir` and
`hex` as parameters (defaults to the latest Elixir and Hex packages).
2021-11-03 08:46:46 +09:00
happysalada
1b9dbf407c beam: mix-release: do not use substituteInPlace on binaries 2021-10-03 20:16:34 +09:00
happysalada
b1b78ac65d mix: add build mix and mix-release configure-hook 2021-08-04 12:05:00 +09:00
happysalada
fc2518d7d2 mix-release: add ERL_LIBS paths to _build dir 2021-08-04 12:05:00 +09:00
happysalada
dca55d9a45 mix-release: add rebar dependency 2021-06-09 12:29:41 +09:00
happysalada
2e3e591211 mix-release: add comments 2021-06-07 10:03:48 +09:00
happysalada
e13301fd5c mix-release: do not override fixup to strip binary 2021-06-07 10:03:48 +09:00
happysalada
5e9f18c572 mix-release: remove erlang ref in resulting derivation 2021-06-07 10:03:48 +09:00
happysalada
8989d2eae8 mix-release: remove erlang ref in erts dir 2021-06-07 10:03:48 +09:00
happysalada
357cc8e05d mix-release: remove rebar dep 2021-06-07 10:03:48 +09:00
happysalada
72a1b62b47 mixRelease: integrate mix2nix 2021-05-25 07:36:38 +09:00
happysalada
481832b32d beam-modules: buildMix -> mixRelease 2021-04-08 20:54:48 +09:00