60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
25 lines
618 B
Nix
25 lines
618 B
Nix
{ stdenv, lib, fetchFromGitHub, elixir, erlang }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mix2nix";
|
|
version = "0.1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ydlr";
|
|
repo = "mix2nix";
|
|
rev = version;
|
|
hash = "sha256-Wh3KFp1gNDOKOG/DZdftmgy/M+67ZGfdj6W3ETQpX/8=";
|
|
};
|
|
|
|
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.";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ydlr ] ++ teams.beam.members;
|
|
};
|
|
}
|