nixpkgs/pkgs/by-name/mi/mix2nix/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
646 B
Nix
Raw Normal View History

2021-05-03 03:28:52 +00:00
{ stdenv, lib, fetchFromGitHub, elixir, erlang }:
stdenv.mkDerivation rec {
2021-05-03 03:28:52 +00:00
pname = "mix2nix";
2024-08-24 01:13:03 +00:00
version = "0.2.0";
2021-05-03 03:28:52 +00:00
src = fetchFromGitHub {
owner = "ydlr";
repo = "mix2nix";
rev = version;
2024-08-24 01:13:03 +00:00
hash = "sha256-hD4lpP8GPkNXuMMDOOTEmy+rOwOSCxQwR0Mjq8i4oDM=";
2021-05-03 03:28:52 +00:00
};
nativeBuildInputs = [ elixir ];
buildInputs = [ erlang ];
2021-05-03 03:28:52 +00:00
buildPhase = "mix escript.build";
installPhase = "install -Dt $out/bin mix2nix";
meta = with lib; {
description = "Generate nix expressions from mix.lock file";
mainProgram = "mix2nix";
2021-05-03 03:28:52 +00:00
license = licenses.mit;
2021-05-03 04:10:06 +00:00
maintainers = with maintainers; [ ydlr ] ++ teams.beam.members;
2021-05-03 03:28:52 +00:00
};
}