mix2nix: init at 0.1.2

This commit is contained in:
Zach
2021-05-20 14:14:35 +09:00
committed by Raphael Megzari
parent b34ab9683c
commit 40da7cda40
3 changed files with 36 additions and 0 deletions
@@ -0,0 +1,24 @@
{ stdenv, lib, fetchFromGitHub, elixir, erlang }:
stdenv.mkDerivation {
pname = "mix2nix";
version = "0.1.2";
src = fetchFromGitHub {
owner = "ydlr";
repo = "mix2nix";
rev = "b153a252f0689d3f6919e16c2df2fb3b6bcc9d2a";
sha256 = "15wyz7gdjywsqvsf1ad9gklvqsqi7lwgmyks3bjlc2sk6kpdxdmi";
};
buildInputs = [ elixir 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 beam ];
};
}