64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
elixir,
|
|
fetchFromGitHub,
|
|
fetchMixDeps,
|
|
mixRelease,
|
|
nix-update-script,
|
|
|
|
# for tests
|
|
beam27Packages,
|
|
beam28Packages,
|
|
}:
|
|
# Based on ../elixir-ls/default.nix
|
|
|
|
let
|
|
pname = "ex_doc";
|
|
version = "0.39.3";
|
|
src = fetchFromGitHub {
|
|
owner = "elixir-lang";
|
|
repo = "${pname}";
|
|
rev = "v${version}";
|
|
hash = "sha256-LLy4gemj3oiMbZKc9ZUWY3g2fyY1Rvxjtzx/sbAp8JE=";
|
|
};
|
|
in
|
|
mixRelease {
|
|
inherit
|
|
pname
|
|
version
|
|
src
|
|
elixir
|
|
;
|
|
|
|
escriptBinName = "ex_doc";
|
|
|
|
stripDebug = true;
|
|
|
|
mixFodDeps = fetchMixDeps {
|
|
pname = "mix-deps-${pname}";
|
|
inherit src version elixir;
|
|
hash = "sha256-TknrENa0Nb1Eobd4oTBl6TilPVEsw9+XjPdF3Ntq+DI=";
|
|
};
|
|
|
|
passthru = {
|
|
tests = {
|
|
# ex_doc is the doc generation for OTP 27+, so let's make sure they build
|
|
erlang_27 = beam27Packages.erlang;
|
|
erlang_28 = beam28Packages.erlang;
|
|
};
|
|
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/elixir-lang/ex_doc";
|
|
description = ''
|
|
ExDoc produces HTML and EPUB documentation for Elixir projects
|
|
'';
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "ex_doc";
|
|
maintainers = with lib.maintainers; [ chiroptical ];
|
|
};
|
|
}
|