2021-05-03 04:28:52 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, elixir, erlang }:
|
|
|
|
|
2021-05-20 03:49:17 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2021-05-03 04:28:52 +01:00
|
|
|
pname = "mix2nix";
|
2021-06-07 03:57:07 +01:00
|
|
|
version = "0.1.4";
|
2021-05-03 04:28:52 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ydlr";
|
|
|
|
repo = "mix2nix";
|
2021-05-20 03:49:17 +01:00
|
|
|
rev = version;
|
2021-06-07 03:57:07 +01:00
|
|
|
sha256 = "0q4yq8glrdj72j7b9xnwb6j3cli3cccimh9sb7acb4npaiivvf69";
|
2021-05-03 04:28:52 +01:00
|
|
|
};
|
|
|
|
|
2021-05-18 00:18:42 +01:00
|
|
|
nativeBuildInputs = [ elixir ];
|
|
|
|
buildInputs = [ erlang ];
|
2021-05-03 04:28:52 +01: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 05:10:06 +01:00
|
|
|
maintainers = with maintainers; [ ydlr ] ++ teams.beam.members;
|
2021-05-03 04:28:52 +01:00
|
|
|
};
|
|
|
|
}
|