mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
26 lines
652 B
Nix
26 lines
652 B
Nix
{ stdenv, lib, fetchFromGitHub, elixir, erlang }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "mix2nix";
|
|
version = "0.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ydlr";
|
|
repo = "mix2nix";
|
|
rev = "66c277bdffb93da9a63e3f1ea42432a73e572b51";
|
|
sha256 = "11qn80im5zfbx25ibxqrgi90mglf8pnsmrqsami633mcf2gvj2hy";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|