2021-05-20 23:08:51 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, elixir, erlang }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mix2nix";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.2.0";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ydlr";
|
|
|
|
repo = "mix2nix";
|
|
|
|
rev = version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-hD4lpP8GPkNXuMMDOOTEmy+rOwOSCxQwR0Mjq8i4oDM=";
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|