at 24.11-pre 34 lines 933 B view raw
1{ lib, buildNpmPackage, fetchFromGitLab }: 2 3buildNpmPackage rec { 4 pname = "antora"; 5 version = "3.1.7"; 6 7 src = fetchFromGitLab { 8 owner = pname; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-uGXXp6boS5yYsInSmkI9S0Tn85QGVp/5Fsh1u3G4oPk="; 12 }; 13 14 npmDepsHash = "sha256-oWLRAuvWDk7w18qlDH14EE4elX5nhLKHSQANa/kXKvw="; 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 mainProgram = "antora"; 30 homepage = "https://antora.org"; 31 license = licenses.mpl20; 32 maintainers = [ maintainers.ehllie ]; 33 }; 34}