diff options
Diffstat (limited to 'pkgs/development/tools/mix2nix/default.nix')
-rw-r--r-- | pkgs/development/tools/mix2nix/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/tools/mix2nix/default.nix b/pkgs/development/tools/mix2nix/default.nix new file mode 100644 index 000000000000..e814f44757f0 --- /dev/null +++ b/pkgs/development/tools/mix2nix/default.nix @@ -0,0 +1,25 @@ +{ stdenv, lib, fetchFromGitHub, elixir, erlang }: + +stdenv.mkDerivation rec { + pname = "mix2nix"; + version = "0.1.3"; + + src = fetchFromGitHub { + owner = "ydlr"; + repo = "mix2nix"; + rev = version; + sha256 = "11qn80im5zfbx25ibxqrgi90mglf8pnsmrqsami633mcf2gvj2hy"; + }; + + nativeBuildInputs = [ elixir ]; + buildInputs = [ erlang ]; + + buildPhase = "mix escript.build"; + installPhase = "install -Dt $out/bin mix2nix"; + + meta = with lib; { + description = "Generate nix expressions from mix.lock file."; + license = licenses.mit; + maintainers = with maintainers; [ ydlr ] ++ teams.beam.members; + }; +} |