Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christopher League
nixvm
Commits
bf810787
Commit
bf810787
authored
Apr 02, 2019
by
Christopher League
Browse files
Try again at including python3 documentation
parent
91f488af
Changes
3
Hide whitespace changes
Inline
Side-by-side
www/Makefile
View file @
bf810787
...
@@ -9,6 +9,7 @@ all: index.html
...
@@ -9,6 +9,7 @@ all: index.html
install
:
install
:
mkdir
-p
$$
out
mkdir
-p
$$
out
cp
style.css index.html
$$
out
cp
style.css index.html
$$
out
ln
-s
$(PYDOCS)
$$
out/python3
clean
:
clean
:
$(RM)
index.html
$(RM)
index.html
...
...
www/default.nix
View file @
bf810787
{
pkgs
?
(
import
<
nixpkgs
>
{})
.
pkgs
{
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
{
pkgs
.
stdenv
.
mkDerivation
{
name
=
"www"
;
name
=
"www"
;
src
=
./.
;
src
=
./.
;
buildFlags
=
"--always-make"
;
buildFlags
=
[
"--always-make"
];
installFlags
=
[
"PYDOCS=
${
python-docs
}
/share/doc/python3"
];
buildInputs
=
[
pkgs
.
pandoc
];
buildInputs
=
[
pkgs
.
pandoc
];
}
}
www/index.org
View file @
bf810787
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
Welcome to the VM.
Welcome to the VM.
Some documentation will be available here.
- [[file:python3/][Python 3 documentation]]
#+ATTR_HTML: :width 48
#+ATTR_HTML: :width 48
[[https://iconsplace.com/wp-content/uploads/_icons/0000ff/256/png/virtual-machine-2-icon-2-256.png]]
[[https://iconsplace.com/wp-content/uploads/_icons/0000ff/256/png/virtual-machine-2-icon-2-256.png]]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment