2024-07-10 18:30:58 +00:00
|
|
|
{
|
|
|
|
stdenvNoCC,
|
|
|
|
pkgs,
|
|
|
|
perl,
|
|
|
|
}:
|
2024-07-01 19:09:48 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "md-manual";
|
|
|
|
version = "1.0.0";
|
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
2024-07-10 18:30:58 +00:00
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
2024-07-01 19:09:48 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
2024-07-01 20:40:19 +00:00
|
|
|
cp index.md $out/index.md
|
2024-07-10 18:47:21 +00:00
|
|
|
cp TODO.md $out/TODO.md
|
2024-07-01 19:09:48 +00:00
|
|
|
cp -r ${pkgs.amg.manual-assets} $out/assets
|
|
|
|
cp -r ${pkgs.amg.nixpkgs-manual} $out/Nixpkgs/
|
|
|
|
cp -r ${pkgs.amg.aux-wiki} $out/Aux
|
2024-07-10 17:58:44 +00:00
|
|
|
cp -r ${pkgs.lix-docs.doc}/manualMD $out/Lix
|
2024-07-10 18:30:58 +00:00
|
|
|
chmod -R u+w $out/Lix
|
|
|
|
pushd $out/Lix
|
|
|
|
find . -type f -exec perl -pi -e 's/\<div class="warning"\>\n\n/\?\?\? bug\n\n\ \ /g' {} \;
|
|
|
|
popd
|
|
|
|
chmod -R u-w $out/Lix
|
2024-07-01 19:09:48 +00:00
|
|
|
'';
|
|
|
|
}
|