Commit bf810787 authored by Christopher League's avatar Christopher League
Browse files

Try again at including python3 documentation

parent 91f488af
......@@ -9,6 +9,7 @@ all: index.html
install:
mkdir -p $$out
cp style.css index.html $$out
ln -s $(PYDOCS) $$out/python3
clean:
$(RM) index.html
......
{ pkgs ? (import <nixpkgs> {}).pkgs
}:
let
baseVer = "3.6";
docsName = "python-${baseVer}.7-docs-html";
python-docs = pkgs.stdenv.mkDerivation {
name = "python3-docs";
src = pkgs.fetchurl
{ url = "https://docs.python.org/${baseVer}/archives/${docsName}.tar.bz2";
# Unfortunately, this SHA can change on next download
sha256 = "03bkh48zyhrc4zvx9sdva048gk83hvgzr4wgd5w7z7d7rrv9b045";
};
unpackPhase = "";
buildPhases = ["installPhase"];
installPhase = ''
mkdir -p $out/share/doc
cd $out/share/doc
tar xf $src
mv ${docsName} python3
'';
};
in
pkgs.stdenv.mkDerivation {
name = "www";
src = ./.;
buildFlags = "--always-make";
buildFlags = ["--always-make"];
installFlags = ["PYDOCS=${python-docs}/share/doc/python3"];
buildInputs = [pkgs.pandoc];
}
......@@ -4,7 +4,7 @@
Welcome to the VM.
Some documentation will be available here.
- [[file:python3/][Python 3 documentation]]
#+ATTR_HTML: :width 48
[[https://iconsplace.com/wp-content/uploads/_icons/0000ff/256/png/virtual-machine-2-icon-2-256.png]]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment