1 { lib, stdenv, fetchFromGitHub, writeText, elixir }:
4 shell = drv: stdenv.mkDerivation {
5 name = "interactive-shell-${drv.name}";
9 pkg = self: stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
17 sha256 = "sha256-fSADQDrqh5U/TdhaHXsMiLMk1wtQ0gEiTqEclJ2w2nY=";
20 setupHook = writeText "setupHook.sh" ''
21 addToSearchPath ERL_LIBS "$1/lib/erlang/lib/"
26 buildInputs = [ elixir ];
40 mkdir -p $out/lib/erlang/lib
41 cp -r ./_build/prod/lib/hex $out/lib/erlang/lib/
47 description = "Package manager for the Erlang VM https://hex.pm";
48 license = lib.licenses.mit;
49 homepage = "https://github.com/hexpm/hex";
50 maintainers = with lib.maintainers; [ ericbmerritt ];