1 { stdenv, lib, fetchFromGitHub, elixir, erlang }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 hash = "sha256-hD4lpP8GPkNXuMMDOOTEmy+rOwOSCxQwR0Mjq8i4oDM=";
14 nativeBuildInputs = [ elixir ];
15 buildInputs = [ erlang ];
17 buildPhase = "mix escript.build";
18 installPhase = "install -Dt $out/bin mix2nix";
21 description = "Generate nix expressions from mix.lock file";
22 mainProgram = "mix2nix";
23 license = licenses.mit;
24 maintainers = with maintainers; [ ydlr ] ++ teams.beam.members;