Skip to content
Snippets Groups Projects
Commit e2f42690 authored by Tom Prince's avatar Tom Prince
Browse files

simpler build

parent f76a491e
No related tags found
No related merge requests found
Pipeline #1200 failed
{ stdenv, lib, graphviz, plantuml, python3, sphinx }: { pkgs, stdenv, lib, graphviz, plantuml, python3, sphinx }:
let let
pyenv = python3.withPackages (ps: [ ps.sphinx ps.sphinxcontrib_plantuml ]); pyenv = pkgs.buildEnv {
name = "sphinx-env";
nativeBuildInputs = [ sphinx python3.pkgs.sphinxcontrib_plantuml ];
};
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.0"; version = "0.0";
...@@ -10,11 +13,10 @@ stdenv.mkDerivation rec { ...@@ -10,11 +13,10 @@ stdenv.mkDerivation rec {
phases = [ "unpackPhase" "buildPhase" ]; phases = [ "unpackPhase" "buildPhase" ];
depsBuildBuild = [ depsBuildBuild = [
graphviz pyenv
plantuml
]; ];
buildPhase = '' buildPhase = ''
${pyenv}/bin/sphinx-build -W docs/source $out/docs sphinx-build -W docs/source $out/docs
''; '';
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment