docs/packages/md-manual/default.nix

29 lines
603 B
Nix
Raw Normal View History

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-21 05:06:27 +00:00
cp -r ${pkgs.amg.lix-docs} $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
'';
}