3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/mix2nix/default.nix

26 lines
621 B
Nix
Raw Normal View History

2021-05-03 04:28:52 +01:00
{ stdenv, lib, fetchFromGitHub, elixir, erlang }:
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";
rev = version;
2021-06-07 03:57:07 +01:00
sha256 = "0q4yq8glrdj72j7b9xnwb6j3cli3cccimh9sb7acb4npaiivvf69";
2021-05-03 04:28:52 +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
};
}