mirror of
https://git.gay/pyrox/aux-docs
synced 2024-10-30 07:27:57 +00:00
29 lines
603 B
Nix
29 lines
603 B
Nix
{
|
|
stdenvNoCC,
|
|
pkgs,
|
|
perl,
|
|
}:
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "md-manual";
|
|
version = "1.0.0";
|
|
|
|
src = ./.;
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp index.md $out/index.md
|
|
cp TODO.md $out/TODO.md
|
|
cp -r ${pkgs.amg.manual-assets} $out/assets
|
|
cp -r ${pkgs.amg.nixpkgs-manual} $out/Nixpkgs/
|
|
cp -r ${pkgs.amg.aux-wiki} $out/Aux
|
|
cp -r ${pkgs.amg.lix-docs} $out/Lix
|
|
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
|
|
'';
|
|
}
|