lol
at 23.11-beta 33 lines 905 B view raw
1{ lib, buildNpmPackage, fetchFromGitLab }: 2 3buildNpmPackage rec { 4 pname = "antora"; 5 version = "3.1.3"; 6 7 src = fetchFromGitLab { 8 owner = pname; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-pOEIARvDXc40sljeyUk51DY6LuhVk7pHfrd9YF5Dsu4="; 12 }; 13 14 npmDepsHash = "sha256-G1/AMwCD2OWuAkqz6zGp1lmaiCAyKIdtwqC902hkZGo="; 15 16 # This is to stop tests from being ran, as some of them fail due to trying to query remote repositories 17 postPatch = '' 18 substituteInPlace package.json --replace \ 19 '"_mocha"' '""' 20 ''; 21 22 postInstall = '' 23 mkdir -p $out/bin 24 ln -s $out/lib/node_modules/antora-build/packages/cli/bin/antora $out/bin/antora 25 ''; 26 27 meta = with lib; { 28 description = "A modular documentation site generator. Designed for users of Asciidoctor."; 29 homepage = "https://antora.org"; 30 license = licenses.mpl20; 31 maintainers = [ maintainers.ehllie ]; 32 }; 33}