nixpkgs-suyu/pkgs/development/tools/mix2nix/default.nix

26 lines
621 B
Nix
Raw Normal View History

2021-05-03 05:28:52 +02:00
{ stdenv, lib, fetchFromGitHub, elixir, erlang }:
stdenv.mkDerivation rec {
2021-05-03 05:28:52 +02:00
pname = "mix2nix";
2021-06-07 04:57:07 +02:00
version = "0.1.4";
2021-05-03 05:28:52 +02:00
src = fetchFromGitHub {
owner = "ydlr";
repo = "mix2nix";
rev = version;
2021-06-07 04:57:07 +02:00
sha256 = "0q4yq8glrdj72j7b9xnwb6j3cli3cccimh9sb7acb4npaiivvf69";
2021-05-03 05:28:52 +02:00
};
nativeBuildInputs = [ elixir ];
buildInputs = [ erlang ];
2021-05-03 05:28:52 +02: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 06:10:06 +02:00
maintainers = with maintainers; [ ydlr ] ++ teams.beam.members;
2021-05-03 05:28:52 +02:00
};
}