nixpkgs/pkgs/development/tools/mix2nix/default.nix

26 lines
621 B
Nix
Raw Normal View History

2021-05-03 05:28:52 +02:00
{ stdenv, lib, fetchFromGitHub, elixir, erlang }:
stdenv.mkDerivation rec {
2021-05-03 05:28:52 +02:00
pname = "mix2nix";
version = "0.1.3";
2021-05-03 05:28:52 +02:00
src = fetchFromGitHub {
owner = "ydlr";
repo = "mix2nix";
rev = version;
sha256 = "11qn80im5zfbx25ibxqrgi90mglf8pnsmrqsami633mcf2gvj2hy";
2021-05-03 05:28:52 +02:00
};
nativeBuildInputs = [ elixir ];
buildInputs = [ erlang ];
2021-05-03 05:28:52 +02:00
buildPhase = "mix escript.build";
installPhase = "install -Dt $out/bin mix2nix";
meta = with lib; {
description = "Generate nix expressions from mix.lock file.";
license = licenses.mit;
2021-05-03 06:10:06 +02:00
maintainers = with maintainers; [ ydlr ] ++ teams.beam.members;
2021-05-03 05:28:52 +02:00
};
}