diff --git a/.gitignore b/.gitignore index 1f68578..fa1a833 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ docs .cache/plugin/social mkdocs-hooks/__pycache__ public +result-doc diff --git a/packages/md-manual/default.nix b/packages/md-manual/default.nix index 662c7d7..5df2e27 100644 --- a/packages/md-manual/default.nix +++ b/packages/md-manual/default.nix @@ -1,10 +1,16 @@ -{ stdenvNoCC, pkgs }: +{ + stdenvNoCC, + pkgs, + perl, +}: stdenvNoCC.mkDerivation { pname = "md-manual"; version = "1.0.0"; src = ./.; + buildInputs = [ perl ]; + installPhase = '' mkdir $out cp index.md $out/index.md @@ -12,5 +18,10 @@ stdenvNoCC.mkDerivation { cp -r ${pkgs.amg.nixpkgs-manual} $out/Nixpkgs/ cp -r ${pkgs.amg.aux-wiki} $out/Aux cp -r ${pkgs.lix-docs.doc}/manualMD $out/Lix + chmod -R u+w $out/Lix + pushd $out/Lix + find . -type f -exec perl -pi -e 's/\