2021-05-20 23:08:51 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, elixir, erlang }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mix2nix";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.1.9";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ydlr";
|
|
|
|
repo = "mix2nix";
|
|
|
|
rev = version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-Wh3KFp1gNDOKOG/DZdftmgy/M+67ZGfdj6W3ETQpX/8=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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.";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mix2nix";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ydlr ] ++ teams.beam.members;
|
|
|
|
};
|
|
|
|
}
|