2021-05-03 05:28:52 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, elixir, erlang }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "mix2nix";
|
2021-05-18 01:18:42 +02:00
|
|
|
version = "0.1.3";
|
2021-05-03 05:28:52 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ydlr";
|
|
|
|
repo = "mix2nix";
|
2021-05-18 01:18:42 +02:00
|
|
|
rev = "66c277bdffb93da9a63e3f1ea42432a73e572b51";
|
|
|
|
sha256 = "11qn80im5zfbx25ibxqrgi90mglf8pnsmrqsami633mcf2gvj2hy";
|
2021-05-03 05:28:52 +02:00
|
|
|
};
|
|
|
|
|
2021-05-18 01:18:42 +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
|
|
|
};
|
|
|
|
}
|