Files
nixpkgs/pkgs/development/beam-modules/ex_doc/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

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.38.4";
src = fetchFromGitHub {
owner = "elixir-lang";
repo = "${pname}";
rev = "v${version}";
hash = "sha256-/gZczKm/IF5QQemrdcda9oKVIGDFSqdiu8YrBwT6Mtk=";
};
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 = with lib; {
homepage = "https://github.com/elixir-lang/ex_doc";
description = ''
ExDoc produces HTML and EPUB documentation for Elixir projects
'';
license = licenses.asl20;
platforms = platforms.unix;
mainProgram = "ex_doc";
maintainers = with maintainers; [ chiroptical ];
};
}